class MigrateEntityReferenceRevisions in Entity Reference Revisions 8
Class MigrateEntityReferenceRevisions
Hierarchy
- class \Drupal\migrate\Plugin\Derivative\MigrateEntityRevision implements ContainerDeriverInterface
- class \Drupal\entity_reference_revisions\Plugin\Derivative\MigrateEntityReferenceRevisions
Expanded class hierarchy of MigrateEntityReferenceRevisions
File
- src/
Plugin/ Derivative/ MigrateEntityReferenceRevisions.php, line 11
Namespace
Drupal\entity_reference_revisions\Plugin\DerivativeView source
class MigrateEntityReferenceRevisions extends MigrateEntityRevision {
/**
* {@inheritdoc}
*/
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateEntityReferenceRevisions:: |
public | function |
Gets the definition of all derivatives of a base plugin. Overrides MigrateEntityRevision:: |
|
MigrateEntityRevision:: |
protected | property | List of derivative definitions. | |
MigrateEntityRevision:: |
protected | property | The entity definitions | |
MigrateEntityRevision:: |
public static | function |
Creates a new class instance. Overrides ContainerDeriverInterface:: |
|
MigrateEntityRevision:: |
public | function |
Gets the definition of a derivative plugin. Overrides DeriverInterface:: |
|
MigrateEntityRevision:: |
public | function | Constructs a MigrateEntity object. |