function EntityContentComplete::getIds

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php \Drupal\migrate\Plugin\migrate\destination\EntityContentComplete::getIds()
  2. 8.9.x core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php \Drupal\migrate\Plugin\migrate\destination\EntityContentComplete::getIds()
  3. 11.x core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php \Drupal\migrate\Plugin\migrate\destination\EntityContentComplete::getIds()

Overrides EntityContentBase::getIds

File

core/modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php, line 28

Class

EntityContentComplete
Provides a destination for migrating the entire entity revision table.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

public function getIds() {
    $ids = [];
    $id_key = $this->getKey('id');
    $ids[$id_key] = $this->getDefinitionFromEntity($id_key);
    $revision_key = $this->getKey('revision');
    if ($revision_key) {
        $ids[$revision_key] = $this->getDefinitionFromEntity($revision_key);
    }
    $langcode_key = $this->getKey('langcode');
    if ($langcode_key) {
        $ids[$langcode_key] = $this->getDefinitionFromEntity($langcode_key);
    }
    return $ids;
}

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