class MigrateDestination
Same name in this branch
- 11.x core/modules/migrate/src/Annotation/MigrateDestination.php \Drupal\migrate\Annotation\MigrateDestination
Same name in other branches
- 9 core/modules/migrate/src/Annotation/MigrateDestination.php \Drupal\migrate\Annotation\MigrateDestination
- 8.9.x core/modules/migrate/src/Annotation/MigrateDestination.php \Drupal\migrate\Annotation\MigrateDestination
- 10 core/modules/migrate/src/Annotation/MigrateDestination.php \Drupal\migrate\Annotation\MigrateDestination
- 10 core/modules/migrate/src/Attribute/MigrateDestination.php \Drupal\migrate\Attribute\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
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
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
Related topics
30 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 - DummyDestination.php in core/
modules/ migrate/ tests/ modules/ migrate_events_test/ src/ Plugin/ migrate/ destination/ DummyDestination.php - Entity.php in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ Entity.php
File
-
core/
modules/ migrate/ src/ Attribute/ MigrateDestination.php, line 25
Namespace
Drupal\migrate\AttributeView 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 | Overrides AttributeInterface::get | 6 | |
AttributeBase::getClass | public | function | Overrides AttributeInterface::getClass | 1 | |
AttributeBase::getId | public | function | Overrides AttributeInterface::getId | ||
AttributeBase::getProvider | public | function | Overrides AttributeInterface::getProvider | ||
AttributeBase::setClass | public | function | Overrides AttributeInterface::setClass | 1 | |
AttributeBase::setProvider | public | function | Overrides AttributeInterface::setProvider | ||
MigrateDestination::__construct | public | function | Constructs a migrate destination plugin attribute object. | Overrides Plugin::__construct |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.