mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
23 lines
517 B
PHP
23 lines
517 B
PHP
<?php
|
|
|
|
namespace SilverStripe\CMS\Tests\Model;
|
|
|
|
use SilverStripe\CMS\Model\SiteTreeExtension;
|
|
use SilverStripe\Control\Controller;
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
class SiteTreeTest_ExtensionB 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('http://www.updatedhost.com', $link);
|
|
}
|
|
}
|