function EntityBaseFieldOverride::getEntityId

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

Overrides Entity::getEntityId

File

core/modules/migrate/src/Plugin/migrate/destination/EntityBaseFieldOverride.php, line 52

Class

EntityBaseFieldOverride
Provides entity base field override destination plugin.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

protected function getEntityId(Row $row) {
    $entity_type = $row->getDestinationProperty('entity_type');
    $bundle = $row->getDestinationProperty('bundle');
    $field_name = $row->getDestinationProperty('field_name');
    return "{$entity_type}.{$bundle}.{$field_name}";
}

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