function MigrateEntityRevision::getDerivativeDefinitions

Same name in other branches
  1. 8.9.x core/modules/migrate/src/Plugin/Derivative/MigrateEntityRevision.php \Drupal\migrate\Plugin\Derivative\MigrateEntityRevision::getDerivativeDefinitions()
  2. 10 core/modules/migrate/src/Plugin/Derivative/MigrateEntityRevision.php \Drupal\migrate\Plugin\Derivative\MigrateEntityRevision::getDerivativeDefinitions()
  3. 11.x core/modules/migrate/src/Plugin/Derivative/MigrateEntityRevision.php \Drupal\migrate\Plugin\Derivative\MigrateEntityRevision::getDerivativeDefinitions()

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 57

Class

MigrateEntityRevision

Namespace

Drupal\migrate\Plugin\Derivative

Code

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.