class MigrateEntityComplete

Deriver for entity_complete:ENTITY_TYPE entity migrations.

Hierarchy

Expanded class hierarchy of MigrateEntityComplete

Deprecated

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

See also

https://www.drupal.org/node/3533565

1 file declares its use of MigrateEntityComplete
EntityContentComplete.php in core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php

File

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

Namespace

Drupal\migrate\Plugin\Derivative
View source
class MigrateEntityComplete extends MigrateEntity {
  public function __construct(array $entity_definitions) {
    @trigger_error(__CLASS__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3533565', E_USER_DEPRECATED);
    parent::__construct($entity_definitions);
  }
  
  /**
   * {@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

Title Sort descending Modifiers Object type Summary Overriden Title
MigrateEntity::$derivatives protected property List of derivative definitions.
MigrateEntity::$entityDefinitions protected property The entity definitions.
MigrateEntity::create public static function Creates a new class instance. Overrides ContainerDeriverInterface::create
MigrateEntity::getDerivativeDefinition public function Gets the definition of a derivative plugin. Overrides DeriverInterface::getDerivativeDefinition
MigrateEntityComplete::getDerivativeDefinitions public function Gets the definition of all derivatives of a base plugin. Overrides MigrateEntity::getDerivativeDefinitions
MigrateEntityComplete::__construct public function Constructs a MigrateEntity object. Overrides MigrateEntity::__construct

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