public function MigrateEntityReferenceRevisions::getDerivativeDefinitions in Entity Reference Revisions 8
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 MigrateEntityRevision::getDerivativeDefinitions
See also
getDerivativeDefinition()
File
- src/
Plugin/ Derivative/ MigrateEntityReferenceRevisions.php, line 16
Class
- MigrateEntityReferenceRevisions
- Class MigrateEntityReferenceRevisions
Namespace
Drupal\entity_reference_revisions\Plugin\DerivativeCode
public function getDerivativeDefinitions($basePluginDefinition) {
foreach ($this->entityDefinitions as $entityType => $entityInfo) {
if ($entityInfo
->getKey('revision')) {
$this->derivatives[$entityType] = [
'id' => "entity_reference_revisions:{$entityType}",
'class' => EntityReferenceRevisions::class,
'requirements_met' => 1,
'provider' => $entityInfo
->getProvider(),
];
}
}
return $this->derivatives;
}