function ModuleExtensionList::getExtensionDiscovery
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ModuleExtensionList.php \Drupal\Core\Extension\ModuleExtensionList::getExtensionDiscovery()
- 8.9.x core/lib/Drupal/Core/Extension/ModuleExtensionList.php \Drupal\Core\Extension\ModuleExtensionList::getExtensionDiscovery()
- 11.x core/lib/Drupal/Core/Extension/ModuleExtensionList.php \Drupal\Core\Extension\ModuleExtensionList::getExtensionDiscovery()
Overrides ExtensionList::getExtensionDiscovery
File
-
core/
lib/ Drupal/ Core/ Extension/ ModuleExtensionList.php, line 88
Class
- ModuleExtensionList
- Provides a list of available modules.
Namespace
Drupal\Core\ExtensionCode
protected function getExtensionDiscovery() {
$discovery = parent::getExtensionDiscovery();
if ($this->getActiveProfile()) {
$discovery->setProfileDirectories($this->getProfileDirectories($discovery));
}
return $discovery;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.