MenuRegistry

MenuRegistry

Table of Contents

Properties

$menus  : array<string|int, mixed>
Internal array that stores all registered menus

Methods

addMenu()  : mixed
Adds a menu to the registry
getMenus()  : array<string|int, mixed>
Returns all menus in an abstract array
makeMenu()  : Menu
MenuFactory method

Properties

$menus

Internal array that stores all registered menus

protected array<string|int, mixed> $menus = []

Methods

addMenu()

Adds a menu to the registry

public addMenu(Menu $menu) : mixed
Parameters
$menu : Menu

Menu object to add to the menuRegistry

Tags
throws
InvalidArgumentException

In case a menu is not valid

getMenus()

Returns all menus in an abstract array

public getMenus() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results