Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MigrateEntityRevision.php

function 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal