MigrateEntityComplete.php

Same filename in other branches
  1. 9 core/modules/migrate/src/Plugin/Derivative/MigrateEntityComplete.php
  2. 8.9.x core/modules/migrate/src/Plugin/Derivative/MigrateEntityComplete.php
  3. 10 core/modules/migrate/src/Plugin/Derivative/MigrateEntityComplete.php

Namespace

Drupal\migrate\Plugin\Derivative

File

core/modules/migrate/src/Plugin/Derivative/MigrateEntityComplete.php

View source
<?php

namespace Drupal\migrate\Plugin\Derivative;

use Drupal\migrate\Plugin\migrate\destination\EntityContentComplete;

/**
 * Deriver for entity_complete:ENTITY_TYPE entity migrations.
 */
class MigrateEntityComplete extends MigrateEntity {
    
    /**
     * {@inheritdoc}
     */
    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;
    }

}

Classes

Title Deprecated Summary
MigrateEntityComplete Deriver for entity_complete:ENTITY_TYPE entity migrations.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.