2016-10-14 03:30:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Forms\Tests\GridField\GridFieldTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\Forms\GridField\GridField_HTMLProvider;
|
|
|
|
|
|
|
|
class HTMLFragments implements GridField_HTMLProvider, TestOnly
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
protected $fragments;
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function __construct($fragments)
|
|
|
|
{
|
|
|
|
$this->fragments = $fragments;
|
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function getHTMLFragments($gridField)
|
|
|
|
{
|
|
|
|
return $this->fragments;
|
|
|
|
}
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|