You are here

public function ModuleHandlerInterface::addModule in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::addModule()

Adds a module to the list of currently active modules.

Parameters

string $name: The module name; e.g., 'node'.

string $path: The module path; e.g., 'core/modules/node'.

1 method overrides ModuleHandlerInterface::addModule()
ModuleHandler::addModule in src/Extension/ModuleHandler.php
Adds a module to the list of currently active modules.

File

lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 91
Contains \Drupal\Core\Extension\ModuleHandlerInterface.

Class

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

Namespace

Drupal\Core\Extension

Code

public function addModule($name, $path);