interface DerivablePluginDefinitionInterface implements PluginDefinitionInterface (View source)

Provides an interface for a derivable plugin definition.

Methods

string
id()

Gets the unique identifier of the plugin.

setClass(string $class)

Sets the class.

string
getClass()

Gets the class.

string
getProvider()

Gets the plugin provider.

string|null
getDeriver()

Gets the name of the deriver of this plugin definition, if it exists.

$this
setDeriver(string|null $deriver)

Sets the deriver of this plugin definition.

Details

string id()

Gets the unique identifier of the plugin.

Return Value

string

The unique identifier of the plugin.

PluginDefinitionInterface setClass(string $class)

Sets the class.

Parameters

string $class

A fully qualified class name.

Return Value

PluginDefinitionInterface

Exceptions

InvalidArgumentException

string getClass()

Gets the class.

Return Value

string

A fully qualified class name.

string getProvider()

Gets the plugin provider.

The provider is the name of the module that provides the plugin, or "core', or "component".

Return Value

string

The provider.

string|null getDeriver()

Gets the name of the deriver of this plugin definition, if it exists.

Return Value

string|null

Either the deriver class name, or NULL if the plugin is not derived.

$this setDeriver(string|null $deriver)

Sets the deriver of this plugin definition.

Parameters

string|null $deriver

Either the name of a class that implements \Drupal\Component\Plugin\Derivative\DeriverInterface, or NULL.

Return Value

$this