You are here

public function ModuleHandler::addModule in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Extension/ModuleHandler.php \Drupal\service_container\Extension\ModuleHandler::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'.

Overrides ModuleHandlerInterface::addModule

File

src/Extension/ModuleHandler.php, line 121
Contains Drupal\service_container\Extension\ModuleHandler.

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\service_container\Extension

Code

public function addModule($name, $path) {
  throw new \BadMethodCallException('ModuleHandler::addModule is not implemented.');
}