Neos.Neos/Classes/Controller/Backend/MenuHelper.php
public function isModuleEnabled($modulePath)
    {
        $modulePathSegments = explode('/', $modulePath);
        $moduleConfiguration = Arrays::getValueByPath($this->settings['modules'], implode('.submodules.', $modulePathSegments));
        if (isset($moduleConfiguration['enabled']) && $moduleConfiguration['enabled'] !== true) {
            return false;
        }
        array_pop($modulePathSegments);
        if ($modulePathSegments === []) {
            return true;
        }
        return $this->isModuleEnabled(implode('/', $modulePathSegments));
    }
public function isModuleEnabled($modulePath)
    {
        $modulePathSegments = explode('/', $modulePath);
        $moduleConfiguration = Arrays::getValueByPath($this->settings['modules'], implode('.submodules.', $modulePathSegments));
        if (isset($moduleConfiguration['enabled']) && $moduleConfiguration['enabled'] !== true) {
            return false;
        }
        array_pop($modulePathSegments);
        if ($modulePathSegments === []) {
            return true;
        }
        return $this->isModuleEnabled(implode('/', $modulePathSegments));
    }
public function isModuleEnabled ( $ modulePath ) { $ modulePathSegments = explode ( '/' , $ modulePath ) ; $ moduleConfiguration = Arrays :: getValueByPath ( $ this -> settings [ 'modules' ] , implode ( '.submodules.' , $ modulePathSegments ) ) ; if ( isset ( $ moduleConfiguration [ 'enabled' ] ) && $ moduleConfiguration [ 'enabled' ] !== true ) { return false ; } array_pop ( $ modulePathSegments ) ; if ( $ modulePathSegments === [ ] ) { return true ; } return $ this -> isModuleEnabled ( implode ( '/' , $ modulePathSegments ) ) ; }
Checks whether a module is enabled or disabled in the configuration

@param string $modulePath name of the module including parent modules ("mainModule/subModule/subSubModule")
@return boolean true if module is enabled (default), false otherwise
Checks whether a module is enabled or disabled in the configuration