class MigrateDestination

Same name and namespace in other branches
  1. 11.x core/modules/migrate/src/Attribute/MigrateDestination.php \Drupal\migrate\Attribute\MigrateDestination
  2. 11.x core/modules/migrate/src/Annotation/MigrateDestination.php \Drupal\migrate\Annotation\MigrateDestination

Defines a migration destination plugin annotation object.

Plugin Namespace: Plugin\migrate\destination

For a working example, see \Drupal\migrate\Plugin\migrate\destination\UrlAlias

Hierarchy

Expanded class hierarchy of MigrateDestination

See also

\Drupal\migrate\Plugin\MigrateDestinationInterface

\Drupal\migrate\Plugin\migrate\destination\DestinationBase

\Drupal\migrate\Plugin\MigrateDestinationPluginManager

\Drupal\migrate\Annotation\MigrateSource

\Drupal\migrate\Annotation\MigrateProcessPlugin

Plugin API

Related topics

30 classes are annotated with MigrateDestination
BlockedIp in core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
Destination for blocked IP addresses.
Book in core/modules/book/src/Plugin/migrate/destination/Book.php
Plugin annotation @MigrateDestination( id = "book", provider = "book" )
Color in core/modules/color/src/Plugin/migrate/destination/Color.php
Persist color data to the config system.
Config in core/modules/migrate/src/Plugin/migrate/destination/Config.php
Provides Configuration Management destination plugin.
DefaultLangcode in core/modules/language/src/Plugin/migrate/destination/DefaultLangcode.php
Provides a destination plugin for the default langcode config.

... See full list

File

core/modules/migrate/src/Annotation/MigrateDestination.php, line 26

Namespace

Drupal\migrate\Annotation
View source
class MigrateDestination extends Plugin {
  
  /**
   * A unique identifier for the process plugin.
   *
   * @var string
   */
  public $id;
  
  /**
   * Whether requirements are met.
   *
   * If TRUE and a 'provider' key is present in the annotation then the
   * default destination plugin manager will set this to FALSE if the
   * provider (module/theme) doesn't exist.
   *
   * @var bool
   */
  public $requirements_met = TRUE;
  
  /**
   * Identifies the system handling the data the destination plugin will write.
   *
   * The destination plugin itself determines how the value is used. For
   * example, Migrate Drupal's destination plugins expect destination_module to
   * be the name of a module that must be installed on the destination.
   *
   * @var string
   */
  public $destination_module;

}

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