You are here

class MigrateEntityComplete in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/Derivative/MigrateEntityComplete.php \Drupal\migrate\Plugin\Derivative\MigrateEntityComplete
  2. 9 core/modules/migrate/src/Plugin/Derivative/MigrateEntityComplete.php \Drupal\migrate\Plugin\Derivative\MigrateEntityComplete

Deriver for entity_complete:ENTITY_TYPE entity migrations.

Hierarchy

Expanded class hierarchy of MigrateEntityComplete

File

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

Namespace

Drupal\migrate\Plugin\Derivative
View source
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;
  }

}

Members