function MigrateEntityRevision::getDerivativeDefinitions
Same name and namespace in other branches
- 11.x core/modules/migrate/src/Plugin/Derivative/MigrateEntityRevision.php \Drupal\migrate\Plugin\Derivative\MigrateEntityRevision::getDerivativeDefinitions()
- 10 core/modules/migrate/src/Plugin/Derivative/MigrateEntityRevision.php \Drupal\migrate\Plugin\Derivative\MigrateEntityRevision::getDerivativeDefinitions()
- 9 core/modules/migrate/src/Plugin/Derivative/MigrateEntityRevision.php \Drupal\migrate\Plugin\Derivative\MigrateEntityRevision::getDerivativeDefinitions()
- 8.9.x core/modules/migrate/src/Plugin/Derivative/MigrateEntityRevision.php \Drupal\migrate\Plugin\Derivative\MigrateEntityRevision::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
1 call to MigrateEntityRevision::getDerivativeDefinitions()
- MigrateEntityRevision::getDerivativeDefinition in core/
modules/ migrate/ src/ Plugin/ Derivative/ MigrateEntityRevision.php - Gets the definition of a derivative plugin.
File
-
core/
modules/ migrate/ src/ Plugin/ Derivative/ MigrateEntityRevision.php, line 60
Class
- MigrateEntityRevision
- The migrate entity revision deriver.
Namespace
Drupal\migrate\Plugin\DerivativeCode
public function getDerivativeDefinitions($base_plugin_definition) {
foreach ($this->entityDefinitions as $entity_type => $entity_info) {
if ($entity_info->getKey('revision')) {
$this->derivatives[$entity_type] = [
'id' => "entity_revision:{$entity_type}",
'class' => 'Drupal\\migrate\\Plugin\\migrate\\destination\\EntityRevision',
'requirements_met' => 1,
'provider' => $entity_info->getProvider(),
];
}
}
return $this->derivatives;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.