Jelix\Core\AppInstance::isModuleEnabled PHP Method

isModuleEnabled() public method

Says if the given module $name is enabled.
public isModuleEnabled ( string $moduleName, boolean $includingExternal = false ) : boolean
$moduleName string
$includingExternal boolean true if we want to know if the module is also an external module, e.g. in an other entry point
return boolean true : module is ok
    public function isModuleEnabled($moduleName, $includingExternal = false)
    {
        if (!$this->_config) {
            throw new \Exception('Configuration is not loaded');
        }
        if ($includingExternal && isset($this->_config->_externalModulesPathList[$moduleName])) {
            return true;
        }
        return isset($this->_config->_modulesPathList[$moduleName]);
    }