Fetch the module information from the info.xml file.
public static getModuleInformation ( string $module ) : array | ||
$module | string | |
Результат | array |
/** * Load the data. * This will also set some warnings if needed. */ private function loadData() { // inform that the module is not installed yet if (!BackendModel::isModuleInstalled($this->currentModule)) { $this->warnings[] = array('message' => BL::getMessage('InformationModuleIsNotInstalled')); } // fetch the module information $moduleInformation = BackendExtensionsModel::getModuleInformation($this->currentModule); $this->information = $moduleInformation['data']; $this->warnings = $this->warnings + $moduleInformation['warnings']; }