function SettableDiscoveryExtensionListTrait::setExtensionDiscovery

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

Sets the extension discovery.

Parameters

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

File

core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php, line 262

Class

SettableDiscoveryExtensionListTrait
Trait that allows extension discovery to be set.

Namespace

Drupal\Tests\Core\Extension

Code

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

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