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

Breadcrumb

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

function MigrateEntityComplete::getDerivativeDefinitions

Overrides MigrateEntity::getDerivativeDefinitions

File

core/modules/migrate/src/Plugin/Derivative/MigrateEntityComplete.php, line 15

Class

MigrateEntityComplete
Deriver for entity_complete:ENTITY_TYPE entity migrations.

Namespace

Drupal\migrate\Plugin\Derivative

Code

public function getDerivativeDefinitions($base_plugin_definition) {
    foreach ($this->entityDefinitions as $entity_type => $entity_info) {
        $this->derivatives[$entity_type] = [
            'id' => "entity_complete:{$entity_type}",
            'class' => EntityContentComplete::class,
            '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