MenuModule implements ModuleInterface
A representation for a module used for the menu generation.
only to be used by TYPO3 Core.
Table of Contents
Interfaces
- ModuleInterface
- An interface representing a TYPO3 Backend module.
Properties
- $isCollapsed : mixed
- $module : ModuleInterface
- $subModules : array<string|int, ModuleInterface>
Methods
- __construct() : mixed
- addSubModule() : void
- Used to set another module as part of the parent module
- getAccess() : string
- Can be user (editor permissions), admin, or systemMaintainer
- getAliases() : array<string|int, mixed>
- Return a list of identifiers that are aliases to this module
- getAppearance() : array<string|int, mixed>
- Returns a modules appearance options, e.g. used for module menu
- getComponent() : string
- Returns the view component responsible for rendering the module (iFrame or name of the web component)
- getDefaultModuleData() : array<string|int, mixed>
- Get allowed and available module data properties and their default values.
- getDefaultRouteOptions() : array<string|int, mixed>
- Returns module related route options - used for the router
- getDescription() : string
- A longer description, common for the "About" section with a long explanation
- getIconIdentifier() : string
- The icon identifier for the module
- getIdentifier() : string
- The internal name of the module, used for referencing in permissions etc
- getIsCollapsed() : bool
- getNavigationComponent() : string
- The web component to be rendering the navigation area
- getParentIdentifier() : string
- The identifier of the parent module during registration
- getParentModule() : ModuleInterface|null
- Get the reference to the next upper menu item
- getPath() : string
- Return the main route path
- getPosition() : array<string|int, mixed>
- The position of the module, such as [top] or [bottom] or [after => anotherModule] or [before => anotherModule]
- getShortDescription() : string
- A shorter description, used when hovering over a module in the menu as title attribute
- getShouldBeLinked() : bool
- getSubModule() : ModuleInterface|null
- Return a submodule given by its full identifier
- getSubModules() : array<string|int, ModuleInterface>
- Return all direct descendants of this module
- getTitle() : string
- The title of the module, used in the menu
- getWorkspaceAccess() : string
- Can be "*" (= empty) or "live" or "offline"
- hasParentModule() : bool
- Can be checked if the module is a "main module"
- hasSubModule() : bool
- Checks whether this module has a submodule with the given identifier
- hasSubModules() : bool
- Checks if this module has further submodules
- isCollapsed() : bool
- isStandalone() : bool
- Useful for main modules that are also "clickable" such as the dashboard module
- removeSubModule() : void
- Remove a submodule
- setParentModule() : void
- Set a reference to the next upper menu item
Properties
$isCollapsed
protected
mixed
$isCollapsed
= false
$module read-only
protected
ModuleInterface
$module
$subModules
protected
array<string|int, ModuleInterface>
$subModules
= []
Methods
__construct()
public
__construct(ModuleInterface $module[, mixed $isCollapsed = false ]) : mixed
Parameters
- $module : ModuleInterface
- $isCollapsed : mixed = false
addSubModule()
Used to set another module as part of the parent module
public
addSubModule(ModuleInterface $module) : void
Parameters
- $module : ModuleInterface
getAccess()
Can be user (editor permissions), admin, or systemMaintainer
public
getAccess() : string
Return values
stringgetAliases()
Return a list of identifiers that are aliases to this module
public
getAliases() : array<string|int, mixed>
Return values
array<string|int, mixed>getAppearance()
Returns a modules appearance options, e.g. used for module menu
public
getAppearance() : array<string|int, mixed>
Return values
array<string|int, mixed>getComponent()
Returns the view component responsible for rendering the module (iFrame or name of the web component)
public
getComponent() : string
Return values
stringgetDefaultModuleData()
Get allowed and available module data properties and their default values.
public
getDefaultModuleData() : array<string|int, mixed>
Return values
array<string|int, mixed>getDefaultRouteOptions()
Returns module related route options - used for the router
public
getDefaultRouteOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getDescription()
A longer description, common for the "About" section with a long explanation
public
getDescription() : string
Return values
stringgetIconIdentifier()
The icon identifier for the module
public
getIconIdentifier() : string
Return values
stringgetIdentifier()
The internal name of the module, used for referencing in permissions etc
public
getIdentifier() : string
Return values
stringgetIsCollapsed()
public
getIsCollapsed() : bool
Return values
boolgetNavigationComponent()
The web component to be rendering the navigation area
public
getNavigationComponent() : string
Return values
stringgetParentIdentifier()
The identifier of the parent module during registration
public
getParentIdentifier() : string
Return values
stringgetParentModule()
Get the reference to the next upper menu item
public
getParentModule() : ModuleInterface|null
Return values
ModuleInterface|nullgetPath()
Return the main route path
public
getPath() : string
Return values
stringgetPosition()
The position of the module, such as [top] or [bottom] or [after => anotherModule] or [before => anotherModule]
public
getPosition() : array<string|int, mixed>
Return values
array<string|int, mixed>getShortDescription()
A shorter description, used when hovering over a module in the menu as title attribute
public
getShortDescription() : string
Return values
stringgetShouldBeLinked()
public
getShouldBeLinked() : bool
Return values
boolgetSubModule()
Return a submodule given by its full identifier
public
getSubModule(string $identifier) : ModuleInterface|null
Parameters
- $identifier : string
Return values
ModuleInterface|nullgetSubModules()
Return all direct descendants of this module
public
getSubModules() : array<string|int, ModuleInterface>
Return values
array<string|int, ModuleInterface>getTitle()
The title of the module, used in the menu
public
getTitle() : string
Return values
stringgetWorkspaceAccess()
Can be "*" (= empty) or "live" or "offline"
public
getWorkspaceAccess() : string
Return values
stringhasParentModule()
Can be checked if the module is a "main module"
public
hasParentModule() : bool
Return values
boolhasSubModule()
Checks whether this module has a submodule with the given identifier
public
hasSubModule(string $identifier) : bool
Parameters
- $identifier : string
Return values
boolhasSubModules()
Checks if this module has further submodules
public
hasSubModules() : bool
Return values
boolisCollapsed()
public
isCollapsed() : bool
Return values
boolisStandalone()
Useful for main modules that are also "clickable" such as the dashboard module
public
isStandalone() : bool
Return values
boolremoveSubModule()
Remove a submodule
public
removeSubModule(string $identifier) : void
Parameters
- $identifier : string
setParentModule()
Set a reference to the next upper menu item
public
setParentModule(ModuleInterface $module) : void
Parameters
- $module : ModuleInterface