Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DerivablePluginDefinitionInterface.php

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

3 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
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\Definition
View source
interface DerivablePluginDefinitionInterface extends PluginDefinitionInterface {
    
    /**
     * Gets the name of the deriver of this plugin definition, if it exists.
     *
     * @return class-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 class-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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal