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.

5 methods override DerivativeInterface::getDerivativeDefinition()
DefaultWizardDeriver::getDerivativeDefinition in drupal/core/modules/views/lib/Drupal/views/Plugin/Type/DefaultWizardDeriver.php
Implements Drupal\Component\Plugin\Derivative\DerivativeInterface::getDerivativeDefinition().
EntityDerivative::getDerivativeDefinition in drupal/core/modules/rest/lib/Drupal/rest/Plugin/Derivative/EntityDerivative.php
Implements DerivativeInterface::getDerivativeDefinition().
Layout::getDerivativeDefinition in drupal/core/modules/layout/lib/Drupal/layout/Plugin/Derivative/Layout.php
Implements DerivativeInterface::getDerivativeDefinition().
MockLayoutBlockDeriver::getDerivativeDefinition in drupal/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Plugin/plugin_test/mock_block/MockLayoutBlockDeriver.php
Implements Drupal\Component\Plugin\Derivative\DerivativeInterface::getDerivativeDefinition().
MockMenuBlockDeriver::getDerivativeDefinition in drupal/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Plugin/plugin_test/mock_block/MockMenuBlockDeriver.php
Implements Drupal\Component\Plugin\Derivative\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);