silverstripe-cms/code/Controllers/CMSPagesController.php
Guy Sartorelli 91cfcb8229
API Make CMSMain more generic
Remove hardcoded references to pages and SiteTree
Remove assumption that records are versioned
Remove or validate assumptions about methods on the model class
Improve general architecture of CMSMain
2024-10-17 16:40:06 +13:00

30 lines
579 B
PHP

<?php
namespace SilverStripe\CMS\Controllers;
use SilverStripe\ORM\DataObject;
// @TODO What a pointless class!!!!!!
class CMSPagesController extends CMSMain
{
private static $url_segment = 'pages';
private static $url_rule = '/$Action/$ID/$OtherID';
private static $url_priority = 40;
private static $menu_title = 'Pages';
private static $required_permission_codes = 'CMS_ACCESS_CMSMain';
public function LinkPreview()
{
return false;
}
public function isCurrentRecord(DataObject $record)
{
return false;
}
}