public function MigrateEntityRevision::getDerivativeDefinitions in Drupal 8
Same name and namespace in other branches
- 9 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()
Gets the definition of all derivatives of a base plugin.
Parameters
array $base_plugin_definition: The definition array of the base plugin.
Return value
array An array of full derivative definitions keyed on derivative id.
Overrides DeriverInterface::getDerivativeDefinitions
See also
getDerivativeDefinition()
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 57
Class
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;
}