You are here

protected function ExtensionList::doScanExtensions in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::doScanExtensions()
  2. 9 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.

File

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

Class

ExtensionList
Provides available extensions.

Namespace

Drupal\Core\Extension

Code

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