You are here

public function SettableDiscoveryExtensionListTrait::setExtensionDiscovery in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php \Drupal\Tests\Core\Extension\SettableDiscoveryExtensionListTrait::setExtensionDiscovery()
  2. 9 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 232

Class

SettableDiscoveryExtensionListTrait
Trait that allows extension discovery to be set.

Namespace

Drupal\Tests\Core\Extension

Code

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