Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Entity.php

function Entity::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.

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
Gets the entity ID of the row.
EntityBlock::getEntityId in core/modules/block/src/Plugin/migrate/destination/EntityBlock.php
Gets the entity ID of the row.

File

core/modules/migrate/src/Plugin/migrate/destination/Entity.php, line 226

Class

Entity
Provides a generic destination to import entities.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal