function ModuleHandler::load
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::load()
- 10 core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::load()
- 11.x core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::load()
Overrides ModuleHandlerInterface::load
1 call to ModuleHandler::load()
- ModuleHandler::loadAll in core/
lib/ Drupal/ Core/ Extension/ ModuleHandler.php - Loads all enabled modules.
File
-
core/
lib/ Drupal/ Core/ Extension/ ModuleHandler.php, line 122
Class
- ModuleHandler
- Class that manages modules in a Drupal installation.
Namespace
Drupal\Core\ExtensionCode
public function load($name) {
if (isset($this->loadedFiles[$name])) {
return TRUE;
}
if (isset($this->moduleList[$name])) {
$this->moduleList[$name]
->load();
$this->loadedFiles[$name] = TRUE;
return TRUE;
}
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.