silverstripe-cms/tests/php/Model/SiteTreeTest_ExtensionA.php
2017-08-09 17:09:28 +12:00

17 lines
335 B
PHP

<?php
namespace SilverStripe\CMS\Tests\Model;
use SilverStripe\CMS\Model\SiteTreeExtension;
use SilverStripe\Dev\TestOnly;
class SiteTreeTest_ExtensionA extends SiteTreeExtension implements TestOnly
{
public static $can_publish = true;
public function canPublish($member)
{
return static::$can_publish;
}
}