function ModuleHandlerInterface::addProfile
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::addProfile()
- 8.9.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::addProfile()
- 11.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::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'.
File
-
core/
lib/ Drupal/ Core/ Extension/ ModuleHandlerInterface.php, line 98
Class
- ModuleHandlerInterface
- Interface for classes that manage a set of enabled modules.
Namespace
Drupal\Core\ExtensionCode
public function addProfile($name, $path);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.