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

Breadcrumb

  1. Drupal Core 11.1.x

EntityShortcutSet.php

Namespace

Drupal\shortcut\Plugin\migrate\destination

File

core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php

View source
<?php

namespace Drupal\shortcut\Plugin\migrate\destination;

use Drupal\migrate\Attribute\MigrateDestination;
use Drupal\migrate\Row;
use Drupal\migrate\Plugin\migrate\destination\EntityConfigBase;

/**
 * Migration destination for shortcut set entity.
 */
class EntityShortcutSet extends EntityConfigBase {
    
    /**
     * {@inheritdoc}
     */
    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;
    }

}

Classes

Title Deprecated Summary
EntityShortcutSet Migration destination for shortcut set entity.

API Navigation

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