You are here

interface PluginDeriverDefinitionInterface in Plugin 8.2

Defines a plugin definition that includes a deriver.

Hierarchy

Expanded class hierarchy of PluginDeriverDefinitionInterface

All classes that implement PluginDeriverDefinitionInterface

File

src/PluginDefinition/PluginDeriverDefinitionInterface.php, line 10

Namespace

Drupal\plugin\PluginDefinition
View source
interface PluginDeriverDefinitionInterface extends PluginDefinitionInterface {

  /**
   * Sets the deriver class.
   *
   * @param string $class
   *   The fully qualified name of a class that implements
   *   \Drupal\Component\Plugin\Derivative\DeriverInterface.
   *
   * @return $this
   *
   * @throws \InvalidArgumentException
   */
  public function setDeriverClass($class);

  /**
   * Gets the deriver class.
   *
   * @return string|null
   *   The fully qualified name of a class that implements
   *   \Drupal\Component\Plugin\Derivative\DeriverInterface or null.
   */
  public function getDeriverClass();

}

Members

Namesort descending Modifiers Type Description Overrides
PluginDefinitionInterface::getClass public function Gets the class. 1
PluginDefinitionInterface::getId public function Gets the plugin ID. 2
PluginDefinitionInterface::getProvider public function Gets the plugin provider. Overrides PluginDefinitionInterface::getProvider 2
PluginDefinitionInterface::id public function Gets the unique identifier of the plugin. 1
PluginDefinitionInterface::mergeDefaultDefinition public function Merges another definition into this one, using the other for defaults.
PluginDefinitionInterface::mergeOverrideDefinition public function Merges another definition into this one, using the other for overrides.
PluginDefinitionInterface::setClass public function Sets the class. 1
PluginDefinitionInterface::setId public function Sets the plugin ID. 2
PluginDefinitionInterface::setProvider public function Sets the plugin provider. 2
PluginDeriverDefinitionInterface::getDeriverClass public function Gets the deriver class. 1
PluginDeriverDefinitionInterface::setDeriverClass public function Sets the deriver class. 1