PHP Class Neos\Neos\Controller\Backend\MenuHelper

Mostrar archivo Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$settings array
$siteRepository Neos\Neos\Domain\Repository\SiteRepository

Public Methods

Method Description
buildModuleList ( ControllerContext $controllerContext ) : array
buildSiteList ( ControllerContext $controllerContext ) : array Build a list of sites
injectSettings ( array $settings )
isModuleEnabled ( string $modulePath ) : boolean Checks whether a module is enabled or disabled in the configuration

Protected Methods

Method Description
collectModuleData ( ControllerContext $controllerContext, string $module, array $moduleConfiguration, string $modulePath ) : array

Method Details

buildModuleList() public method

public buildModuleList ( ControllerContext $controllerContext ) : array
$controllerContext Neos\Flow\Mvc\Controller\ControllerContext
return array

buildSiteList() public method

Build a list of sites
public buildSiteList ( ControllerContext $controllerContext ) : array
$controllerContext Neos\Flow\Mvc\Controller\ControllerContext
return array

collectModuleData() protected method

protected collectModuleData ( ControllerContext $controllerContext, string $module, array $moduleConfiguration, string $modulePath ) : array
$controllerContext Neos\Flow\Mvc\Controller\ControllerContext
$module string
$moduleConfiguration array
$modulePath string
return array

injectSettings() public method

public injectSettings ( array $settings )
$settings array

isModuleEnabled() public method

Checks whether a module is enabled or disabled in the configuration
public isModuleEnabled ( string $modulePath ) : boolean
$modulePath string name of the module including parent modules ("mainModule/subModule/subSubModule")
return boolean TRUE if module is enabled (default), FALSE otherwise

Property Details

$privilegeManager protected_oe property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
return Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$settings protected_oe property

protected array $settings
return array

$siteRepository protected_oe property

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
return Neos\Neos\Domain\Repository\SiteRepository