public function DerivativeInterface::getDerivativeDefinition

Returns the definition of a derivative plugin.

Parameters

string $derivative_id: The derivative id. The id must uniquely identify the derivative within a given base plugin, but derivative ids can be reused across base plugins.

array $base_plugin_definition: The definition array of the base plugin from which the derivative plugin is derived.

Return value

array The full definition array of the derivative plugin, typically a merge of $base_plugin_definition with extra derivative-specific information. NULL if the derivative doesn't exist.

15 methods override DerivativeInterface::getDerivativeDefinition()

File

drupal/core/lib/Drupal/Component/Plugin/Derivative/DerivativeInterface.php, line 30
Definition of Drupal\Component\Plugin\Derivative\DerivativeInterface.

Class

DerivativeInterface
Plugin interface for derivative plugin handling.

Namespace

Drupal\Component\Plugin\Derivative

Code

public function getDerivativeDefinition($derivative_id, array $base_plugin_definition);