interface DerivablePluginDefinitionInterface
Provides an interface for a derivable plugin definition.
Hierarchy
- interface \Drupal\Component\Plugin\Definition\PluginDefinitionInterface
- interface \Drupal\Component\Plugin\Definition\DerivablePluginDefinitionInterface extends \Drupal\Component\Plugin\Definition\PluginDefinitionInterface
 
 
Expanded class hierarchy of DerivablePluginDefinitionInterface
All classes that implement DerivablePluginDefinitionInterface
See also
\Drupal\Component\Plugin\Derivative\DeriverInterface
4 files declare their use of DerivablePluginDefinitionInterface
- CKEditor5PluginDefinition.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefinition.php  - DerivativeDiscoveryDecorator.php in core/
lib/ Drupal/ Component/ Plugin/ Discovery/ DerivativeDiscoveryDecorator.php  - DerivativeDiscoveryDecoratorTest.php in core/
tests/ Drupal/ Tests/ Core/ Plugin/ Discovery/ DerivativeDiscoveryDecoratorTest.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
| Title Sort descending | Modifiers | Object type | Summary | Overrides | 
|---|---|---|---|---|
| DerivablePluginDefinitionInterface::getDeriver | public | function | Gets the name of the deriver of this plugin definition, if it exists. | 2 | 
| DerivablePluginDefinitionInterface::setDeriver | public | function | Sets the deriver of this plugin definition. | 2 | 
| PluginDefinitionInterface::getClass | public | function | Gets the class. | 1 | 
| PluginDefinitionInterface::getProvider | public | function | Gets the plugin provider. | 1 | 
| PluginDefinitionInterface::id | public | function | Gets the unique identifier of the plugin. | 1 | 
| PluginDefinitionInterface::setClass | public | function | Sets the class. | 1 | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.