function TestExtension::setExtensionDiscovery

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\TestExtension::setExtensionDiscovery()
  2. 8.9.x core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\TestExtension::setExtensionDiscovery()
  3. 10 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\TestExtension::setExtensionDiscovery()

Parameters

\Drupal\Core\Extension\ExtensionDiscovery $extension_discovery: The extension discovery class.

File

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

Class

TestExtension

Namespace

Drupal\Tests\Core\Extension

Code

public function setExtensionDiscovery(ExtensionDiscovery $extension_discovery) : void {
    $this->extensionDiscovery = $extension_discovery;
}

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