You are here

protected function EntityBaseFieldOverride::getEntityId in Zircon Profile 8.0

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()

Get the entity id of the row.

Parameters

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

Return value

string The entity id for the row we're importing.

Overrides Entity::getEntityId

File

core/modules/migrate/src/Plugin/migrate/destination/EntityBaseFieldOverride.php, line 22
Contains \Drupal\migrate\Plugin\migrate\destination\EntityBaseFieldOverride.

Class

EntityBaseFieldOverride
Plugin annotation @MigrateDestination( id = "entity:base_field_override" )

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