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

23 lines
484 B
PHP
Raw Normal View History

<?php
2017-08-09 04:53:38 +02:00
namespace SilverStripe\CMS\Tests\Model;
2017-08-09 03:25:12 +02:00
use SilverStripe\Control\Controller;
use SilverStripe\Dev\TestOnly;
2024-08-29 03:54:17 +02:00
use SilverStripe\Core\Extension;
2024-08-29 03:54:17 +02: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');
}
}