You are here

protected function TestExtension::getExtensionDiscovery in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\TestExtension::getExtensionDiscovery()
  2. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\TestExtension::getExtensionDiscovery()

Returns the extension discovery.

Return value

\Drupal\Core\Extension\ExtensionDiscovery

Overrides ExtensionList::getExtensionDiscovery

File

core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php, line 356

Class

TestExtension

Namespace

Drupal\Tests\Core\Extension

Code

protected function getExtensionDiscovery() {
  return $this->extensionDiscovery ?: parent::getExtensionDiscovery();
}