mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
23 lines
523 B
PHP
23 lines
523 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Admin\Tests\CMSMenuTest;
|
|
|
|
use SilverStripe\Admin\LeftAndMain;
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
class CustomTitle extends LeftAndMain implements TestOnly
|
|
{
|
|
private static $url_segment = 'CMSMenuTest_CustomTitle';
|
|
|
|
private static $menu_priority = 50;
|
|
|
|
public static function menu_title($class = null, $localised = false)
|
|
{
|
|
if ($localised) {
|
|
return __CLASS__ . ' (localised)';
|
|
} else {
|
|
return __CLASS__ . ' (unlocalised)';
|
|
}
|
|
}
|
|
}
|