class TestConfigurablePlugin in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin implements ConfigurablePluginInterface
Expanded class hierarchy of TestConfigurablePlugin
3 files declare their use of TestConfigurablePlugin
- BlockConfigEntityUnitTest.php in core/
modules/ block/ tests/ src/ Unit/ BlockConfigEntityUnitTest.php - Contains \Drupal\Tests\block\Unit\BlockConfigEntityUnitTest.
- ConfigEntityBaseUnitTest.php in core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php - Contains \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest.
- DefaultLazyPluginCollectionTest.php in core/
tests/ Drupal/ Tests/ Core/ Plugin/ DefaultLazyPluginCollectionTest.php - Contains \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest.
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ Fixtures/ TestConfigurablePlugin.php, line 13 - Contains \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin.
Namespace
Drupal\Tests\Core\Plugin\FixturesView source
class TestConfigurablePlugin extends PluginBase implements ConfigurablePluginInterface {
/**
* {@inheritdoc}
*/
public function getConfiguration() {
return $this->configuration;
}
/**
* {@inheritdoc}
*/
public function setConfiguration(array $configuration) {
$this->configuration = $configuration;
}
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return array();
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
return array();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 2 |
PluginBase:: |
protected | property | The plugin implementation definition. | |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Constructs a Drupal\Component\Plugin\PluginBase object. | 69 |
TestConfigurablePlugin:: |
public | function |
Calculates dependencies for the configured plugin. Overrides DependentPluginInterface:: |
|
TestConfigurablePlugin:: |
public | function |
Gets default configuration for this plugin. Overrides ConfigurablePluginInterface:: |
|
TestConfigurablePlugin:: |
public | function |
Gets this plugin's configuration. Overrides ConfigurablePluginInterface:: |
|
TestConfigurablePlugin:: |
public | function |
Sets the configuration for this plugin instance. Overrides ConfigurablePluginInterface:: |