![]() |
TYPO3
7.6
|
Public Member Functions | |
getMenuObjectByType ($type= '') | |
registerMenuType ($type, $className) | |
Protected Attributes | |
$menuTypeToClassMapping | |
Factory for menu content objects. Allows overriding the default types like 'GMENU' with an own implementation (only one possible) and new types can be registered.
Definition at line 25 of file MenuContentObjectFactory.php.
getMenuObjectByType | ( | $type = '' | ) |
Gets a typo script string like 'TMENU' and returns an object of this type
string | $type |
Exception\NoSuchMenuTypeException |
Definition at line 46 of file MenuContentObjectFactory.php.
References GeneralUtility\makeInstance().
Referenced by MenuContentObjectFactoryTest\getMenuObjectByTypeThrowsExceptionForUnknownType().
registerMenuType | ( | $type, | |
$className | |||
) |
Register new menu type or override existing type
string | $type | Menu type to be used in TypoScript |
string | $className | Class rendering the menu |
\InvalidArgumentException |
Definition at line 67 of file MenuContentObjectFactory.php.
Referenced by MenuContentObjectFactoryTest\registerMenuTypeThrowsExceptionIfClassNameIsNotOfTypeString(), and MenuContentObjectFactoryTest\registerMenuTypeThrowsExceptionIfTypeIsNotOfTypeString().
|
protected |
Definition at line 32 of file MenuContentObjectFactory.php.