silverstripe-cms/code/Controllers/CMSPageSettingsController.php
Damian Mooyman a87a857a6e
Upgrade code for framework namespaces
Remove @package / @subpackage
Fix inifinite loop in VirtualPage_Controller
2016-09-07 16:29:26 +12:00

28 lines
693 B
PHP

<?php
namespace SilverStripe\CMS\Controllers;
class CMSPageSettingsController extends CMSMain {
private static $url_segment = 'pages/settings';
private static $url_rule = '/$Action/$ID/$OtherID';
private static $url_priority = 42;
private static $required_permission_codes = 'CMS_ACCESS_CMSMain';
public function getEditForm($id = null, $fields = null) {
$record = $this->getRecord($id ?: $this->currentPageID());
return parent::getEditForm($id, ($record) ? $record->getSettingsFields() : null);
}
public function Breadcrumbs($unlinked = false) {
$crumbs = parent::Breadcrumbs($unlinked);
$crumbs[0]->Title = _t('CMSPagesController.MENUTITLE');
return $crumbs;
}
}