75232490b7b325932cd7ae7d7302bca592ab5cf7
[yaffs-website] / web / core / modules / migrate / src / Plugin / migrate / destination / EntityBaseFieldOverride.php
1 <?php
2
3 namespace Drupal\migrate\Plugin\migrate\destination;
4
5 use Drupal\migrate\Row;
6
7 /**
8  * Provides entity base field override plugin.
9  *
10  * @MigrateDestination(
11  *   id = "entity:base_field_override"
12  * )
13  */
14 class EntityBaseFieldOverride extends EntityConfigBase {
15
16   /**
17    * {@inheritdoc}
18    */
19   protected function getEntityId(Row $row) {
20     $entity_type = $row->getDestinationProperty('entity_type');
21     $bundle = $row->getDestinationProperty('bundle');
22     $field_name = $row->getDestinationProperty('field_name');
23     return "$entity_type.$bundle.$field_name";
24   }
25
26 }