mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
15 lines
294 B
PHP
15 lines
294 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|