class ConfigurablePluginInterfaceTestClass in Drupal 8
Test Class to trigger deprecation error.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Tests\Component\Plugin\ConfigurablePluginInterfaceTestClass implements ConfigurablePluginInterface
Expanded class hierarchy of ConfigurablePluginInterfaceTestClass
File
- core/
tests/ Drupal/ Tests/ Component/ Plugin/ ConfigurablePluginInterfaceTest.php, line 31
Namespace
Drupal\Tests\Component\PluginView source
class ConfigurablePluginInterfaceTestClass extends PluginBase implements ConfigurablePluginInterface {
/**
* {@inheritdoc}
*/
public function getConfiguration() {
return [];
}
/**
* {@inheritdoc}
*/
public function setConfiguration(array $configuration) {
}
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return [];
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
return [];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurablePluginInterfaceTestClass:: |
public | function |
Calculates dependencies for the configured plugin. Overrides DependentPluginInterface:: |
|
ConfigurablePluginInterfaceTestClass:: |
public | function |
Gets default configuration for this plugin. Overrides ConfigurablePluginInterface:: |
|
ConfigurablePluginInterfaceTestClass:: |
public | function |
Gets this plugin's configuration. Overrides ConfigurablePluginInterface:: |
|
ConfigurablePluginInterfaceTestClass:: |
public | function |
Sets the configuration for this plugin instance. Overrides ConfigurablePluginInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
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:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |