You are here

protected function EntityBaseFieldOverride::getEntityId in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/destination/EntityBaseFieldOverride.php \Drupal\migrate\Plugin\migrate\destination\EntityBaseFieldOverride::getEntityId()
  2. 9 core/modules/migrate/src/Plugin/migrate/destination/EntityBaseFieldOverride.php \Drupal\migrate\Plugin\migrate\destination\EntityBaseFieldOverride::getEntityId()

Gets the entity ID of the row.

Parameters

\Drupal\migrate\Row $row: The row of data.

Return value

string The entity ID for the row that we are importing.

Overrides Entity::getEntityId

File

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

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}";
}