function EntityShortcutSet::getEntity

Same name in other branches
  1. 9 core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php \Drupal\shortcut\Plugin\migrate\destination\EntityShortcutSet::getEntity()
  2. 8.9.x core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php \Drupal\shortcut\Plugin\migrate\destination\EntityShortcutSet::getEntity()
  3. 11.x core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php \Drupal\shortcut\Plugin\migrate\destination\EntityShortcutSet::getEntity()

Overrides Entity::getEntity

File

core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php, line 18

Class

EntityShortcutSet
Migration destination for shortcut set entity.

Namespace

Drupal\shortcut\Plugin\migrate\destination

Code

protected function getEntity(Row $row, array $old_destination_id_values) {
    $entity = parent::getEntity($row, $old_destination_id_values);
    // Set the "syncing" flag to TRUE, to avoid duplication of default
    // shortcut links
    $entity->setSyncing(TRUE);
    return $entity;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.