You are here

public function Sql::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Plugin/migrate/id_map/Sql.php \Drupal\migrate\Plugin\migrate\id_map\Sql::__construct()

Constructs an SQL object.

Sets up the tables and builds the maps,

Parameters

array $configuration: The configuration.

string $plugin_id: The plugin ID for the migration process to do.

mixed $plugin_definition: The configuration for the plugin.

\Drupal\migrate\Entity\MigrationInterface $migration: The migration to do.

Overrides PluginBase::__construct

1 call to Sql::__construct()
TestSqlIdMap::__construct in core/modules/migrate/tests/src/Unit/TestSqlIdMap.php
Constructs a TestSqlIdMap object.
1 method overrides Sql::__construct()
TestSqlIdMap::__construct in core/modules/migrate/tests/src/Unit/TestSqlIdMap.php
Constructs a TestSqlIdMap object.

File

core/modules/migrate/src/Plugin/migrate/id_map/Sql.php, line 153
Contains \Drupal\migrate\Plugin\migrate\id_map\Sql.

Class

Sql
Defines the sql based ID map implementation.

Namespace

Drupal\migrate\Plugin\migrate\id_map

Code

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