silverstripe-cms/tests/model/SiteTreeTest_ExtensionB.php

15 lines
294 B
PHP
Raw Normal View History

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