silverstripe-framework/tests/php/Forms/GridField/GridFieldTest/Component2.php
Guy Sartorelli e2e32317d6
API Move various classes to more appropriate namespaces (#11370)
Also rename ViewableData to ModelData ahead of the template layer
lift-and-shift
2024-09-23 14:31:50 +12:00

20 lines
567 B
PHP

<?php
namespace SilverStripe\Forms\Tests\GridField\GridFieldTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Forms\GridField\GridField;
use SilverStripe\Forms\GridField\GridField_DataManipulator;
use SilverStripe\Model\List\ArrayList;
use SilverStripe\Model\List\SS_List;
class Component2 implements GridField_DataManipulator, TestOnly
{
public function getManipulatedData(GridField $gridField, SS_List $dataList)
{
$dataList = clone $dataList;
$dataList->merge(new ArrayList([7, 8, 9, 10, 11, 12]));
return $dataList;
}
}