trait SettableDiscoveryExtensionListTrait
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php \Drupal\Tests\Core\Extension\SettableDiscoveryExtensionListTrait
- 8.9.x core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php \Drupal\Tests\Core\Extension\SettableDiscoveryExtensionListTrait
- 10 core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php \Drupal\Tests\Core\Extension\SettableDiscoveryExtensionListTrait
Trait that allows extension discovery to be set.
Hierarchy
- trait \Drupal\Tests\Core\Extension\SettableDiscoveryExtensionListTrait
File
-
core/
tests/ Drupal/ Tests/ Core/ Extension/ ThemeExtensionListTest.php, line 247
Namespace
Drupal\Tests\Core\ExtensionView source
trait SettableDiscoveryExtensionListTrait {
/**
* The extension discovery for this extension list.
*
* @var \Drupal\Core\Extension\ExtensionDiscovery
*/
protected $extensionDiscovery;
/**
* Sets the extension discovery.
*
* @param \Drupal\Core\Extension\ExtensionDiscovery $discovery
* The extension discovery.
*/
public function setExtensionDiscovery(ExtensionDiscovery $discovery) : void {
$this->extensionDiscovery = $discovery;
}
/**
* {@inheritdoc}
*/
public function getExtensionDiscovery() {
return $this->extensionDiscovery;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
SettableDiscoveryExtensionListTrait::$extensionDiscovery | protected | property | The extension discovery for this extension list. |
SettableDiscoveryExtensionListTrait::getExtensionDiscovery | public | function | |
SettableDiscoveryExtensionListTrait::setExtensionDiscovery | public | function | Sets the extension discovery. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.