TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
MenuRegistry Class Reference

Public Member Functions

 addMenu (Menu $menu)
 
 makeMenu ()
 

Protected Attributes

 $menus = []
 

Detailed Description

MenuRegistry

Definition at line 23 of file MenuRegistry.php.

Member Function Documentation

addMenu ( Menu  $menu)

Adds a menu to the registry

Parameters
Menu$menuMenu object to add to the menuRegistry
Exceptions
InvalidArgumentException In case a menu is not valid
Returns
void

Definition at line 41 of file MenuRegistry.php.

References Menu\getIdentifier(), and Menu\isValid().

makeMenu ( )

MenuFactory method

Returns
Menu

Definition at line 76 of file MenuRegistry.php.

References GeneralUtility\makeInstance().

Member Data Documentation

$menus = []
protected

Definition at line 30 of file MenuRegistry.php.