You are here

public function ModuleHandler::addProfile in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Extension/ModuleHandler.php \Drupal\service_container\Extension\ModuleHandler::addProfile()

Adds an installation profile to the list of currently active modules.

Parameters

string $name: The profile name; e.g., 'standard'.

string $path: The profile path; e.g., 'core/profiles/standard'.

Overrides ModuleHandlerInterface::addProfile

File

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

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\service_container\Extension

Code

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