function ModuleExtensionList::getExtensionDiscovery

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Extension/ModuleExtensionList.php \Drupal\Core\Extension\ModuleExtensionList::getExtensionDiscovery()
  2. 10 core/lib/Drupal/Core/Extension/ModuleExtensionList.php \Drupal\Core\Extension\ModuleExtensionList::getExtensionDiscovery()
  3. 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\Extension

Code

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.