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. 8.9.x core/modules/migrate/src/Plugin/migrate/destination/DestinationBase.php \Drupal\migrate\Plugin\migrate\destination\DestinationBase::__construct()
  3. 10 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.

8 calls to DestinationBase::__construct()
BlockedIp::__construct in core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
Constructs a BlockedIp 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.
NodeCounter::__construct in core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php
Constructs a node counter plugin.

... See full list

8 methods override DestinationBase::__construct()
BlockedIp::__construct in core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
Constructs a BlockedIp 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.
NodeCounter::__construct in core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php
Constructs a node counter plugin.

... See full list

File

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

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.