public function ModuleHandlerInterface::load in Service Container 7.2
Same name and namespace in other branches
- 7 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.
1 method overrides ModuleHandlerInterface::load()
- ModuleHandler::load in src/
Extension/ ModuleHandler.php - Includes a module's .module file.
File
- lib/
Drupal/ Core/ Extension/ ModuleHandlerInterface.php, line 30 - Contains \Drupal\Core\Extension\ModuleHandlerInterface.
Class
- ModuleHandlerInterface
- Interface for classes that manage a set of enabled modules.
Namespace
Drupal\Core\ExtensionCode
public function load($name);