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

Breadcrumb

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

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

API Navigation

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