You are here

protected function Entity::getEntityId in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/destination/Entity.php \Drupal\migrate\Plugin\migrate\destination\Entity::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.

1 call to Entity::getEntityId()
Entity::getEntity in core/modules/migrate/src/Plugin/migrate/destination/Entity.php
Creates or loads an entity.
2 methods override Entity::getEntityId()
EntityBaseFieldOverride::getEntityId in core/modules/migrate/src/Plugin/migrate/destination/EntityBaseFieldOverride.php
Get the entity id of the row.
EntityBlock::getEntityId in core/modules/block/src/Plugin/migrate/destination/EntityBlock.php
Get the entity id of the row.

File

core/modules/migrate/src/Plugin/migrate/destination/Entity.php, line 135
Contains \Drupal\migrate\Plugin\migrate\destination\Entity.

Class

Entity
Plugin annotation @MigrateDestination( id = "entity", deriver = "Drupal\migrate\Plugin\Derivative\MigrateEntity" )

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

protected function getEntityId(Row $row) {
  return $row
    ->getDestinationProperty($this
    ->getKey('id'));
}