2016-11-13 08:35:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Admin\Tests\CMSMenuTest;
|
|
|
|
|
|
|
|
use SilverStripe\Admin\LeftAndMain;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
|
|
|
|
class CustomTitle extends LeftAndMain implements TestOnly
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $url_segment = 'CMSMenuTest_CustomTitle';
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $menu_priority = 50;
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public static function menu_title($class = null, $localised = false)
|
|
|
|
{
|
|
|
|
if ($localised) {
|
|
|
|
return __CLASS__ . ' (localised)';
|
|
|
|
} else {
|
|
|
|
return __CLASS__ . ' (unlocalised)';
|
|
|
|
}
|
|
|
|
}
|
2016-11-13 08:35:43 +01:00
|
|
|
}
|