function ExtensionList::doScanExtensions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::doScanExtensions()
  2. 8.9.x core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::doScanExtensions()
  3. 11.x core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::doScanExtensions()

Scans the available extensions.

Overriding this method gives other code the chance to add additional extensions to this raw listing.

Return value

\Drupal\Core\Extension\Extension[] Unprocessed extension objects, keyed by machine name.

2 calls to ExtensionList::doScanExtensions()
ExtensionList::doList in core/lib/Drupal/Core/Extension/ExtensionList.php
Builds the list of extensions.
ModuleExtensionList::doScanExtensions in core/lib/Drupal/Core/Extension/ModuleExtensionList.php
Scans the available extensions.
2 methods override ExtensionList::doScanExtensions()
DatabaseDriverList::doScanExtensions in core/lib/Drupal/Core/Extension/DatabaseDriverList.php
Scans the available extensions.
ModuleExtensionList::doScanExtensions in core/lib/Drupal/Core/Extension/ModuleExtensionList.php
Scans the available extensions.

File

core/lib/Drupal/Core/Extension/ExtensionList.php, line 298

Class

ExtensionList
Provides available extensions.

Namespace

Drupal\Core\Extension

Code

protected function doScanExtensions() {
    return $this->getExtensionDiscovery()
        ->scan($this->type);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.