public function SettableDiscoveryExtensionListTrait::setExtensionDiscovery in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php \Drupal\Tests\Core\Extension\SettableDiscoveryExtensionListTrait::setExtensionDiscovery()
- 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 232
Class
- SettableDiscoveryExtensionListTrait
- Trait that allows extension discovery to be set.
Namespace
Drupal\Tests\Core\ExtensionCode
public function setExtensionDiscovery(ExtensionDiscovery $discovery) {
$this->extensionDiscovery = $discovery;
}