class TestConfigEntityWithPluginCollections
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php \Drupal\Tests\Core\Config\Entity\TestConfigEntityWithPluginCollections
- 10 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php \Drupal\Tests\Core\Config\Entity\TestConfigEntityWithPluginCollections
- 11.x core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php \Drupal\Tests\Core\Config\Entity\TestConfigEntityWithPluginCollections
Hierarchy
- class \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Entity\EntityInterface uses \Drupal\Core\Cache\RefinableCacheableDependencyTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\Core\Config\Entity\ConfigEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Config\Entity\ConfigEntityInterface uses \Drupal\Core\Plugin\PluginDependencyTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
- class \Drupal\Tests\Core\Config\Entity\Fixtures\ConfigEntityBaseWithPluginCollections extends \Drupal\Core\Config\Entity\ConfigEntityBase implements \Drupal\Core\Entity\EntityWithPluginCollectionInterface
- class \Drupal\Tests\Core\Config\Entity\TestConfigEntityWithPluginCollections extends \Drupal\Tests\Core\Config\Entity\Fixtures\ConfigEntityBaseWithPluginCollections
- class \Drupal\Tests\Core\Config\Entity\Fixtures\ConfigEntityBaseWithPluginCollections extends \Drupal\Core\Config\Entity\ConfigEntityBase implements \Drupal\Core\Entity\EntityWithPluginCollectionInterface
- class \Drupal\Core\Config\Entity\ConfigEntityBase extends \Drupal\Core\Entity\EntityBase implements \Drupal\Core\Config\Entity\ConfigEntityInterface uses \Drupal\Core\Plugin\PluginDependencyTrait, \Drupal\Core\Entity\SynchronizableEntityTrait
Expanded class hierarchy of TestConfigEntityWithPluginCollections
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php, line 645
Namespace
Drupal\Tests\Core\Config\EntityView source
class TestConfigEntityWithPluginCollections extends ConfigEntityBaseWithPluginCollections {
protected $pluginCollection;
protected $pluginManager;
public function setPluginManager(PluginManagerInterface $plugin_manager) {
$this->pluginManager = $plugin_manager;
}
/**
* {@inheritdoc}
*/
public function getPluginCollections() {
if (!$this->pluginCollection) {
$this->pluginCollection = new DefaultLazyPluginCollection($this->pluginManager, [
'the_instance_id' => [
'id' => 'the_instance_id',
],
]);
}
return [
'the_plugin_collection_config' => $this->pluginCollection,
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestConfigEntityWithPluginCollections::$pluginCollection | protected | property | |
TestConfigEntityWithPluginCollections::$pluginManager | protected | property | |
TestConfigEntityWithPluginCollections::getPluginCollections | public | function | |
TestConfigEntityWithPluginCollections::setPluginManager | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.