interface DerivablePluginDefinitionInterface in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Plugin/Definition/DerivablePluginDefinitionInterface.php \Drupal\Component\Plugin\Definition\DerivablePluginDefinitionInterface
Provides an interface for a derivable plugin definition.
Hierarchy
- interface \Drupal\Component\Plugin\Definition\PluginDefinitionInterface
- interface \Drupal\Component\Plugin\Definition\DerivablePluginDefinitionInterface
Expanded class hierarchy of DerivablePluginDefinitionInterface
All classes that implement DerivablePluginDefinitionInterface
See also
\Drupal\Component\Plugin\Derivative\DeriverInterface
2 files declare their use of DerivablePluginDefinitionInterface
- DerivativeDiscoveryDecorator.php in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ DerivativeDiscoveryDecorator.php - LayoutDefinition.php in core/
lib/ Drupal/ Core/ Layout/ LayoutDefinition.php
File
- core/
lib/ Drupal/ Component/ Plugin/ Definition/ DerivablePluginDefinitionInterface.php, line 10
Namespace
Drupal\Component\Plugin\DefinitionView source
interface DerivablePluginDefinitionInterface extends PluginDefinitionInterface {
/**
* Gets the name of the deriver of this plugin definition, if it exists.
*
* @return string|null
* Either the deriver class name, or NULL if the plugin is not derived.
*/
public function getDeriver();
/**
* Sets the deriver of this plugin definition.
*
* @param string|null $deriver
* Either the name of a class that implements
* \Drupal\Component\Plugin\Derivative\DeriverInterface, or NULL.
*
* @return $this
*/
public function setDeriver($deriver);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DerivablePluginDefinitionInterface:: |
public | function | Gets the name of the deriver of this plugin definition, if it exists. | 1 |
DerivablePluginDefinitionInterface:: |
public | function | Sets the deriver of this plugin definition. | 1 |
PluginDefinitionInterface:: |
public | function | Gets the class. | 1 |
PluginDefinitionInterface:: |
public | function | Gets the plugin provider. | 1 |
PluginDefinitionInterface:: |
public | function | Gets the unique identifier of the plugin. | 1 |
PluginDefinitionInterface:: |
public | function | Sets the class. | 1 |