SubmoduleProviderInterface
Adminpanel interface providing hierarchical functionality for modules
A module implementing this interface may have submodules. Be aware that the current implementation of the adminpanel renders a maximum level of 2 for modules. If you need to render more levels, write your own module and implement multi-hierarchical rendering in the getContent method
Tags
Table of Contents
Methods
- getSubModules() : array<string|int, ModuleInterface>
- Returns an array of module instances
- hasSubmoduleSettings() : bool
- Return true if any of the submodules has settings to be rendered (can be used to render settings in a central place)
- setSubModules() : void
- Sets array of module instances (instances of `ModuleInterface`) as submodules
Methods
getSubModules()
Returns an array of module instances
public
getSubModules() : array<string|int, ModuleInterface>
Return values
array<string|int, ModuleInterface>hasSubmoduleSettings()
Return true if any of the submodules has settings to be rendered (can be used to render settings in a central place)
public
hasSubmoduleSettings() : bool
Return values
boolsetSubModules()
Sets array of module instances (instances of `ModuleInterface`) as submodules
public
setSubModules(array<string|int, ModuleInterface> $subModules) : void
Parameters
- $subModules : array<string|int, ModuleInterface>