function DeriverBase::getDerivativeDefinitions

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Component/Plugin/Derivative/DeriverBase.php \Drupal\Component\Plugin\Derivative\DeriverBase::getDerivativeDefinitions()
  2. 10 core/lib/Drupal/Component/Plugin/Derivative/DeriverBase.php \Drupal\Component\Plugin\Derivative\DeriverBase::getDerivativeDefinitions()
  3. 9 core/lib/Drupal/Component/Plugin/Derivative/DeriverBase.php \Drupal\Component\Plugin\Derivative\DeriverBase::getDerivativeDefinitions()
  4. 8.9.x core/lib/Drupal/Component/Plugin/Derivative/DeriverBase.php \Drupal\Component\Plugin\Derivative\DeriverBase::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.

Overrides DeriverInterface::getDerivativeDefinitions

17 calls to DeriverBase::getDerivativeDefinitions()
AddModerationDeriver::getDerivativeDefinitions in core/modules/content_moderation/src/Plugin/ConfigAction/AddModerationDeriver.php
BlockContent::getDerivativeDefinitions in core/modules/block_content/src/Plugin/Derivative/BlockContent.php
ConfigTranslationContextualLinks::getDerivativeDefinitions in core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php
ConfigTranslationLocalTasks::getDerivativeDefinitions in core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationLocalTasks.php
ContentEntityDeriver::getDerivativeDefinitions in core/modules/migrate/src/Plugin/migrate/source/ContentEntityDeriver.php

... See full list

52 methods override DeriverBase::getDerivativeDefinitions()
AddComponentDeriver::getDerivativeDefinitions in core/modules/layout_builder/src/Plugin/ConfigAction/Deriver/AddComponentDeriver.php
AddModerationDeriver::getDerivativeDefinitions in core/modules/content_moderation/src/Plugin/ConfigAction/AddModerationDeriver.php
BlockContent::getDerivativeDefinitions in core/modules/block_content/src/Plugin/Derivative/BlockContent.php
ConfigTranslationContextualLinks::getDerivativeDefinitions in core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php
ConfigTranslationLocalTasks::getDerivativeDefinitions in core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationLocalTasks.php

... See full list

File

core/lib/Drupal/Component/Plugin/Derivative/DeriverBase.php, line 31

Class

DeriverBase
Provides a basic deriver.

Namespace

Drupal\Component\Plugin\Derivative

Code

public function getDerivativeDefinitions($base_plugin_definition) {
  return $this->derivatives;
}

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