function DeriverInterface::getDerivativeDefinitions

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Component/Plugin/Derivative/DeriverInterface.php \Drupal\Component\Plugin\Derivative\DeriverInterface::getDerivativeDefinitions()
  2. 10 core/lib/Drupal/Component/Plugin/Derivative/DeriverInterface.php \Drupal\Component\Plugin\Derivative\DeriverInterface::getDerivativeDefinitions()
  3. 9 core/lib/Drupal/Component/Plugin/Derivative/DeriverInterface.php \Drupal\Component\Plugin\Derivative\DeriverInterface::getDerivativeDefinitions()
  4. 8.9.x core/lib/Drupal/Component/Plugin/Derivative/DeriverInterface.php \Drupal\Component\Plugin\Derivative\DeriverInterface::getDerivativeDefinitions()

Gets the definition of all derivatives of a base plugin.

Parameters

array|\Drupal\Component\Plugin\Definition\PluginDefinitionInterface $base_plugin_definition: The definition of the base plugin from which the derivative plugin is derived. It is maybe an entire object or just some array, depending on the discovery mechanism.

Return value

array An array of full derivative definitions keyed on derivative id.

See also

getDerivativeDefinition()

14 methods override DeriverInterface::getDerivativeDefinitions()
DeriverBase::getDerivativeDefinitions in core/lib/Drupal/Component/Plugin/Derivative/DeriverBase.php
Gets the definition of all derivatives of a base plugin.
EntityDeriver::getDerivativeDefinitions in core/modules/rest/src/Plugin/Deriver/EntityDeriver.php
Gets the definition of all derivatives of a base plugin.
EntityDeriver::getDerivativeDefinitions in core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php
Gets the definition of all derivatives of a base plugin.
FieldItemDeriver::getDerivativeDefinitions in core/lib/Drupal/Core/Field/Plugin/DataType/Deriver/FieldItemDeriver.php
Gets the definition of all derivatives of a base plugin.
MigrateEntity::getDerivativeDefinitions in core/modules/migrate/src/Plugin/Derivative/MigrateEntity.php
Gets the definition of all derivatives of a base plugin.

... See full list

File

core/lib/Drupal/Component/Plugin/Derivative/DeriverInterface.php, line 43

Class

DeriverInterface
Provides additional plugin definitions based on an existing definition.

Namespace

Drupal\Component\Plugin\Derivative

Code

public function getDerivativeDefinitions($base_plugin_definition);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.