function DestinationBase::__construct

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/destination/DestinationBase.php \Drupal\migrate\Plugin\migrate\destination\DestinationBase::__construct()
  2. 10 core/modules/migrate/src/Plugin/migrate/destination/DestinationBase.php \Drupal\migrate\Plugin\migrate\destination\DestinationBase::__construct()
  3. 11.x core/modules/migrate/src/Plugin/migrate/destination/DestinationBase.php \Drupal\migrate\Plugin\migrate\destination\DestinationBase::__construct()

Constructs an entity destination plugin.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration.

9 calls to DestinationBase::__construct()
BlockedIp::__construct in core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
Constructs a BlockedIp object.
Color::__construct in core/modules/color/src/Plugin/migrate/destination/Color.php
Constructs a Color object.
ComponentEntityDisplayBase::__construct in core/modules/migrate/src/Plugin/migrate/destination/ComponentEntityDisplayBase.php
PerComponentEntityDisplay constructor.
Config::__construct in core/modules/migrate/src/Plugin/migrate/destination/Config.php
Constructs a Config destination object.
Entity::__construct in core/modules/migrate/src/Plugin/migrate/destination/Entity.php
Construct a new entity.

... See full list

9 methods override DestinationBase::__construct()
BlockedIp::__construct in core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
Constructs a BlockedIp object.
Color::__construct in core/modules/color/src/Plugin/migrate/destination/Color.php
Constructs a Color object.
ComponentEntityDisplayBase::__construct in core/modules/migrate/src/Plugin/migrate/destination/ComponentEntityDisplayBase.php
PerComponentEntityDisplay constructor.
Config::__construct in core/modules/migrate/src/Plugin/migrate/destination/Config.php
Constructs a Config destination object.
Entity::__construct in core/modules/migrate/src/Plugin/migrate/destination/Entity.php
Construct a new entity.

... See full list

File

core/modules/migrate/src/Plugin/migrate/destination/DestinationBase.php, line 62

Class

DestinationBase
Base class for migrate destination classes.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->migration = $migration;
}

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