function ModuleHandlerInterface::load
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::load()
- 8.9.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::load()
- 11.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::load()
Includes a module's .module file.
This prevents including a module more than once.
Parameters
string $name: The name of the module to load.
Return value
bool TRUE if the item is loaded or has already been loaded.
File
-
core/
lib/ Drupal/ Core/ Extension/ ModuleHandlerInterface.php, line 27
Class
- ModuleHandlerInterface
- Interface for classes that manage a set of enabled modules.
Namespace
Drupal\Core\ExtensionCode
public function load($name);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.