Pull merge.
[yaffs-website] / web / core / modules / shortcut / src / Plugin / migrate / destination / EntityShortcutSet.php
1 <?php
2
3 namespace Drupal\shortcut\Plugin\migrate\destination;
4
5 use Drupal\migrate\Row;
6 use Drupal\migrate\Plugin\migrate\destination\EntityConfigBase;
7
8 /**
9  * @MigrateDestination(
10  *   id = "entity:shortcut_set"
11  * )
12  */
13 class EntityShortcutSet extends EntityConfigBase {
14
15   /**
16    * {@inheritdoc}
17    */
18   protected function getEntity(Row $row, array $old_destination_id_values) {
19     $entity = parent::getEntity($row, $old_destination_id_values);
20     // Set the "syncing" flag to TRUE, to avoid duplication of default
21     // shortcut links
22     $entity->setSyncing(TRUE);
23     return $entity;
24   }
25
26 }