public function ModuleHandlerInterface::load

public ModuleHandlerInterface::load($name)

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 25

Class

ModuleHandlerInterface
Interface for classes that manage a set of enabled modules.

Namespace

Drupal\Core\Extension

Code

public function load($name);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Extension!ModuleHandlerInterface.php/function/ModuleHandlerInterface::load/8.1.x