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

Breadcrumb

  1. Drupal Core 11.1.x
  2. MigrateDestination.php

class MigrateDestination

Same name in this branch
  1. 11.1.x core/modules/migrate/src/Annotation/MigrateDestination.php \Drupal\migrate\Annotation\MigrateDestination

Defines a MigrateDestination attribute.

Plugin Namespace: Plugin\migrate\destination

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

Hierarchy

  • class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
    • class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
      • class \Drupal\migrate\Attribute\MigrateDestination extends \Drupal\Component\Plugin\Attribute\Plugin

Expanded class hierarchy of MigrateDestination

See also

\Drupal\migrate\Plugin\MigrateDestinationPluginManager

\Drupal\migrate\Plugin\MigrateDestinationInterface

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

\Drupal\migrate\Attribute\MigrateProcess

Plugin API

Related topics

Migrate API
Overview of the Migrate API, which migrates data into Drupal.
29 files declare their use of MigrateDestination
BlockedIp.php in core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
Config.php in core/modules/migrate/src/Plugin/migrate/destination/Config.php
DefaultLangcode.php in core/modules/language/src/Plugin/migrate/destination/DefaultLangcode.php
Entity.php in core/modules/migrate/src/Plugin/migrate/destination/Entity.php
EntityBaseFieldOverride.php in core/modules/migrate/src/Plugin/migrate/destination/EntityBaseFieldOverride.php

... See full list

File

core/modules/migrate/src/Attribute/MigrateDestination.php, line 25

Namespace

Drupal\migrate\Attribute
View source
class MigrateDestination extends Plugin {
    
    /**
     * Constructs a migrate destination plugin attribute object.
     *
     * @param string $id
     *   A unique identifier for the destination plugin.
     * @param bool $requirements_met
     *   (optional) Whether requirements are met.
     * @param string|null $destination_module
     *   (optional) Identifies the system handling the data the destination plugin
     *   will write. The destination plugin itself determines how the value is
     *   used. For example, Migrate's destination plugins expect
     *   destination_module to be the name of a module that must be installed on
     *   the destination.
     * @param class-string|null $deriver
     *   (optional) The deriver class.
     */
    public function __construct(string $id, bool $requirements_met = TRUE, ?string $destination_module = NULL, ?string $deriver = NULL) {
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
AttributeBase::$class protected property The class used for this attribute class.
AttributeBase::$provider protected property The provider of the attribute class.
AttributeBase::get public function Gets the value of an attribute. Overrides AttributeInterface::get 6
AttributeBase::getClass public function Gets the class of the attribute class. Overrides AttributeInterface::getClass 1
AttributeBase::getId public function Gets the unique ID for this attribute class. Overrides AttributeInterface::getId
AttributeBase::getProvider public function Gets the name of the provider of the attribute class. Overrides AttributeInterface::getProvider
AttributeBase::setClass public function Sets the class of the attributed class. Overrides AttributeInterface::setClass 1
AttributeBase::setProvider public function Sets the name of the provider of the attribute class. Overrides AttributeInterface::setProvider
MigrateDestination::__construct public function Constructs a migrate destination plugin attribute object. Overrides Plugin::__construct
RSS feed
Powered by Drupal