PluginBase
abstract class PluginBase implements PluginInspectionInterface, DerivativeInspectionInterface (View source)
Base class for plugins wishing to support metadata inspection.
Constants
| DERIVATIVE_SEPARATOR |
A string which is used to separate base plugin IDs from the derivative ID. |
Properties
| protected string | $pluginId | The plugin_id. |
|
| protected array | $pluginDefinition | The plugin implementation definition. |
|
| protected array | $configuration | Configuration information passed into the plugin. |
Methods
Constructs a \Drupal\Component\Plugin\PluginBase object.
Gets the plugin_id of the plugin instance.
Gets the base_plugin_id of the plugin instance.
Gets the derivative_id of the plugin instance.
Gets the definition of the plugin implementation.
Determines if the plugin is configurable.
Details
__construct(array $configuration, string $plugin_id, mixed $plugin_definition)
Constructs a \Drupal\Component\Plugin\PluginBase object.
string
getPluginId()
Gets the plugin_id of the plugin instance.
string
getBaseId()
Gets the base_plugin_id of the plugin instance.
string|null
getDerivativeId()
Gets the derivative_id of the plugin instance.
array
getPluginDefinition()
Gets the definition of the plugin implementation.
bool
isConfigurable()
Determines if the plugin is configurable.