ModuleInstaller

Default implementation of the module installer. It registers the module in config, installs its own configuration, installs the schema, updates the Drupal kernel and more. Hierarchy class \Drupal\Core\Extension\ModuleInstaller implements ModuleInstallerInterface File core/lib/Drupal/Core/Extension/ModuleInstaller.php, line 18 Namespace Drupal\Core\Extension Members Name Modifiers Type Description ModuleInstaller::$kernel protected property The drupal kernel. ModuleInst

ModuleHandlerInterface::writeCache

public ModuleHandlerInterface::writeCache() Write the hook implementation info to the cache. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 189 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function writeCache();

ModuleHandlerInterface::setModuleList

public ModuleHandlerInterface::setModuleList(array $module_list = array()) Sets an explicit list of currently active modules. Parameters \Drupal\Core\Extension\Extension[] $module_list: An associative array whose keys are the names of the modules and whose values are Extension objects. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 76 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code publ

ModuleHandlerInterface::resetImplementations

public ModuleHandlerInterface::resetImplementations() Resets the cached list of hook implementations. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 194 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function resetImplementations();

ModuleHandlerInterface::reload

public ModuleHandlerInterface::reload() Reloads all enabled modules. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 44 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function reload();

ModuleHandlerInterface::moduleExists

public ModuleHandlerInterface::moduleExists($module) Determines whether a given module is enabled. Parameters string $module: The name of the module (without the .module extension). Return value bool TRUE if the module is both installed and enabled. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 126 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function moduleExists($module);

ModuleHandlerInterface::loadInclude

public ModuleHandlerInterface::loadInclude($module, $type, $name = NULL) Loads a module include file. Examples: <?php // Load node.admin.inc from the node module. $this->loadInclude('node', 'inc', 'node.admin'); // Load content_types.inc from the node module. $this->loadInclude('node', 'inc', ''content_types'); ?> Parameters string $module: The module to which the include file belongs. string $type: The include file's type (file extension). string $name: (optional) The base

ModuleHandlerInterface::loadAllIncludes

public ModuleHandlerInterface::loadAllIncludes($type, $name = NULL) Loads an include file for each enabled module. Parameters string $type: The include file's type (file extension). string $name: (optional) The base file name (without the $type extension). If omitted, each module's name is used; i.e., "$module.$type" by default. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 137 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules.

ModuleHandlerInterface::loadAll

public ModuleHandlerInterface::loadAll() Loads all enabled modules. File core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 30 Class ModuleHandlerInterface Interface for classes that manage a set of enabled modules. Namespace Drupal\Core\Extension Code public function loadAll();

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);