SilverStripe\Admin\CMSMenuItem
A simple CMS menu item.
Items can be added to the menu through custom classes and .
Synopsis
class CMSMenuItem
{
- // members
- public $title;
- public $url;
- public $controller;
- public $priority;
- protected array $attributes = ;
- public $iconClass;
- // methods
- public void __construct()
- public void setAttributes()
- public DBHTMLText getAttributesHTML()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Members
protected
- $attributes
—
string
Attributes for the link. For instance, custom data attributes or standard HTML anchor properties.
public
- $controller
—
string
Parent controller class name - $iconClass — string
- $priority
—
integer
Menu priority (sort order) - $title
—
string
The (translated) menu title - $url
—
string
Relative URL
Methods
public
- __construct() — Create a new CMS Menu Item
- getAttributesHTML()
- setAttributes()