class TestConfigurablePlugin
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin
- 8.9.x core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin
- 11.x core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\ConfigurableInterface, \Drupal\Component\Plugin\DependentPluginInterface
Expanded class hierarchy of TestConfigurablePlugin
3 files declare their use of TestConfigurablePlugin
- BlockConfigEntityUnitTest.php in core/
modules/ block/ tests/ src/ Unit/ BlockConfigEntityUnitTest.php - ConfigEntityBaseUnitTest.php in core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php - DefaultLazyPluginCollectionTest.php in core/
tests/ Drupal/ Tests/ Core/ Plugin/ DefaultLazyPluginCollectionTest.php
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ Fixtures/ TestConfigurablePlugin.php, line 11
Namespace
Drupal\Tests\Core\Plugin\FixturesView source
class TestConfigurablePlugin extends PluginBase implements ConfigurableInterface, DependentPluginInterface {
/**
* {@inheritdoc}
*/
public function getConfiguration() {
return $this->configuration;
}
/**
* {@inheritdoc}
*/
public function setConfiguration(array $configuration) {
$this->configuration = $configuration;
}
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return [];
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
return [];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
PluginBase::$configuration | protected | property | Configuration information passed into the plugin. | ||
PluginBase::$pluginDefinition | protected | property | The plugin implementation definition. | ||
PluginBase::$pluginId | protected | property | The plugin ID. | ||
PluginBase::DERIVATIVE_SEPARATOR | constant | A string which is used to separate base plugin IDs from the derivative ID. | |||
PluginBase::getBaseId | public | function | Gets the base_plugin_id of the plugin instance. | Overrides DerivativeInspectionInterface::getBaseId | |
PluginBase::getDerivativeId | public | function | Gets the derivative_id of the plugin instance. | Overrides DerivativeInspectionInterface::getDerivativeId | |
PluginBase::getPluginDefinition | public | function | Gets the definition of the plugin implementation. | Overrides PluginInspectionInterface::getPluginDefinition | |
PluginBase::getPluginId | public | function | Gets the plugin ID of the plugin instance. | Overrides PluginInspectionInterface::getPluginId | |
PluginBase::isConfigurable | public | function | Determines if the plugin is configurable. | ||
PluginBase::__construct | public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 6 | |
TestConfigurablePlugin::calculateDependencies | public | function | Calculates dependencies for the configured plugin. | Overrides DependentPluginInterface::calculateDependencies | |
TestConfigurablePlugin::defaultConfiguration | public | function | Gets default configuration for this plugin. | Overrides ConfigurableInterface::defaultConfiguration | |
TestConfigurablePlugin::getConfiguration | public | function | Gets this plugin's configuration. | Overrides ConfigurableInterface::getConfiguration | |
TestConfigurablePlugin::setConfiguration | public | function | Sets the configuration for this plugin instance. | Overrides ConfigurableInterface::setConfiguration |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.