function SettableDiscoveryExtensionListTrait::setExtensionDiscovery
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php \Drupal\Tests\Core\Extension\SettableDiscoveryExtensionListTrait::setExtensionDiscovery()
- 8.9.x core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php \Drupal\Tests\Core\Extension\SettableDiscoveryExtensionListTrait::setExtensionDiscovery()
- 11.x 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\ExtensionCode
public function setExtensionDiscovery(ExtensionDiscovery $discovery) {
$this->extensionDiscovery = $discovery;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.