Symbiote\GroupedCmsMenu\Admin\GroupedCmsMenu
Decorates {@link LeftAndMain} to provide a grouped/nested CMS menu.
Synopsis
class GroupedCmsMenu
extends LeftAndMainExtension
{
- // members
- private static array $menu_groups = ;
- private static boolean $menu_groups_alphabetical_sorting = false;
- // methods
- public void init()
- public ArrayList GroupedMainMenu()
- public string getTitle()
- public string getIcon()
- public ArrayList filterChildren()
Hierarchy
Extends
- SilverStripe\Admin\LeftAndMainExtension
Members
private
Methods
public
- GroupedMainMenu()
- filterChildren() — Ensure what we pass to $Children in the include template is accurate. We only want to indicate to it that children should be shown groups declared in config.
- getIcon() — Return the {@link LeftAndMain} subclass' `$menu_icon_class` or use the name of the heading as per the `$menu_groups` setting in config.
- getTitle() — Return the {@link LeftAndMain} subclass' `$menu_title` for each Level 1 menu item, or use the partial name of each child item from `$menu_groups` config.
- init() — Require the CSS which we need for the menu.