silverstripe-cms/tests/php/Model/SiteTreeTest_ExtensionA.php

23 lines
484 B
PHP
Raw Normal View History

<?php
2017-08-09 14:53:38 +12:00
namespace SilverStripe\CMS\Tests\Model;
2017-08-09 13:25:12 +12:00
use SilverStripe\Control\Controller;
use SilverStripe\Dev\TestOnly;
2024-08-29 13:54:17 +12:00
use SilverStripe\Core\Extension;
2024-08-29 13:54:17 +12:00
class SiteTreeTest_ExtensionA extends Extension implements TestOnly
{
public static $can_publish = true;
protected function canPublish($member)
{
return static::$can_publish;
}
protected function updateLink(&$link, $action = null)
{
$link = Controller::join_links($link, '?extra=1');
}
}