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
see
ContentProviderInterface::getContent()

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

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
bool

setSubModules()

Sets array of module instances (instances of `ModuleInterface`) as submodules

public setSubModules(array<string|int, ModuleInterface$subModules) : void
Parameters
$subModules : array<string|int, ModuleInterface>

        
On this page

Search results