2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Forms\Tests\GridField\GridFieldTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\Forms\GridField\GridField;
|
|
|
|
use SilverStripe\Forms\GridField\GridField_DataManipulator;
|
|
|
|
use SilverStripe\ORM\ArrayList;
|
|
|
|
use SilverStripe\ORM\SS_List;
|
|
|
|
|
|
|
|
class Component2 implements GridField_DataManipulator, TestOnly
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
public function getManipulatedData(GridField $gridField, SS_List $dataList)
|
|
|
|
{
|
|
|
|
$dataList = clone $dataList;
|
2020-04-20 19:58:09 +02:00
|
|
|
$dataList->merge(new ArrayList([7, 8, 9, 10, 11, 12]));
|
2016-12-16 05:34:21 +01:00
|
|
|
return $dataList;
|
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|