silverstripe-cms/tests/php/Model/VirtualPageTest_TestDBField.php
2022-04-13 17:07:59 +12:00

15 lines
291 B
PHP

<?php
namespace SilverStripe\CMS\Tests\Model;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\FieldType\DBVarchar;
class VirtualPageTest_TestDBField extends DBVarchar implements TestOnly
{
public function forTemplate()
{
return strtoupper($this->XML() ?? '');
}
}