public function isEnabled($modulePath)
    {
        $modulePathSegments = explode('/', $modulePath);
        $moduleConfiguration = Arrays::getValueByPath($this->modules, implode('.submodules.', $modulePathSegments));

        if (isset($moduleConfiguration['enabled']) && $moduleConfiguration['enabled'] !== true) {
            return false;
        }

        array_pop($modulePathSegments);

        if ($modulePathSegments === []) {
            return true;
        }

        return $this->isEnabled(implode('/', $modulePathSegments));
    }
public function isEnabled($modulePath)
    {
        $modulePathSegments = explode('/', $modulePath);
        $moduleConfiguration = Arrays::getValueByPath($this->modules, implode('.submodules.', $modulePathSegments));

        if (isset($moduleConfiguration['enabled']) && $moduleConfiguration['enabled'] !== true) {
            return false;
        }

        array_pop($modulePathSegments);

        if ($modulePathSegments === []) {
            return true;
        }

        return $this->isEnabled(implode('/', $modulePathSegments));
    }
public function isEnabled ( $ modulePath ) { $ modulePathSegments = explode ( '/' , $ modulePath ) ; $ moduleConfiguration = Arrays :: getValueByPath ( $ this -> modules , implode ( '.submodules.' , $ modulePathSegments ) ) ; if ( isset ( $ moduleConfiguration [ 'enabled' ] ) && $ moduleConfiguration [ 'enabled' ] !== true ) { return false ; } array_pop ( $ modulePathSegments ) ; if ( $ modulePathSegments === [ ] ) { return true ; } return $ this -> isEnabled ( implode ( '/' , $ modulePathSegments ) ) ; }
Checks whether a module is enabled

@param string $modulePath
@return boolean
Checks whether a module is enabled