Neos\Neos\Ui\TypoScript\Helper\ModulesHelper::isEnabled PHP Method

isEnabled() public method

Checks whether a module is enabled
public isEnabled ( strin $modulePath ) : boolean
$modulePath strin
return boolean
    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));
    }