function EntityBaseFieldOverride::getEntityId
Same name in other branches
- 9 core/modules/migrate/src/Plugin/migrate/destination/EntityBaseFieldOverride.php \Drupal\migrate\Plugin\migrate\destination\EntityBaseFieldOverride::getEntityId()
- 10 core/modules/migrate/src/Plugin/migrate/destination/EntityBaseFieldOverride.php \Drupal\migrate\Plugin\migrate\destination\EntityBaseFieldOverride::getEntityId()
- 11.x core/modules/migrate/src/Plugin/migrate/destination/EntityBaseFieldOverride.php \Drupal\migrate\Plugin\migrate\destination\EntityBaseFieldOverride::getEntityId()
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\destinationCode
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}";
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.