mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
23 lines
499 B
PHP
23 lines
499 B
PHP
<?php
|
|
|
|
namespace SilverStripe\CMS\Tests\Model;
|
|
|
|
use SilverStripe\CMS\Model\SiteTreeExtension;
|
|
use SilverStripe\Control\Controller;
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
class SiteTreeTest_ExtensionA extends SiteTreeExtension implements TestOnly
|
|
{
|
|
public static $can_publish = true;
|
|
|
|
public function canPublish($member)
|
|
{
|
|
return static::$can_publish;
|
|
}
|
|
|
|
public function updateLink(&$link, $action = null)
|
|
{
|
|
$link = Controller::join_links($link, '?extra=1');
|
|
}
|
|
}
|