trait SettableDiscoveryExtensionListTrait in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php \Drupal\Tests\Core\Extension\SettableDiscoveryExtensionListTrait
- 9 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 217
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) {
$this->extensionDiscovery = $discovery;
}
/**
* {@inheritdoc}
*/
public function getExtensionDiscovery() {
return $this->extensionDiscovery;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SettableDiscoveryExtensionListTrait:: |
protected | property | The extension discovery for this extension list. | |
SettableDiscoveryExtensionListTrait:: |
public | function | ||
SettableDiscoveryExtensionListTrait:: |
public | function | Sets the extension discovery. |