You are here

public function SourcePluginExtension::__construct in Migrate Plus 8.2

Same name and namespace in other branches
  1. 8.5 src/Plugin/migrate/source/SourcePluginExtension.php \Drupal\migrate_plus\Plugin\migrate\source\SourcePluginExtension::__construct()
  2. 8 src/Plugin/migrate/source/SourcePluginExtension.php \Drupal\migrate_plus\Plugin\migrate\source\SourcePluginExtension::__construct()
  3. 8.3 src/Plugin/migrate/source/SourcePluginExtension.php \Drupal\migrate_plus\Plugin\migrate\source\SourcePluginExtension::__construct()
  4. 8.4 src/Plugin/migrate/source/SourcePluginExtension.php \Drupal\migrate_plus\Plugin\migrate\source\SourcePluginExtension::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

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.

Overrides SourcePluginBase::__construct

1 call to SourcePluginExtension::__construct()
Url::__construct in src/Plugin/migrate/source/Url.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
1 method overrides SourcePluginExtension::__construct()
Url::__construct in src/Plugin/migrate/source/Url.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/Plugin/migrate/source/SourcePluginExtension.php, line 36

Class

SourcePluginExtension
Generally-useful extensions to the core SourcePluginBase.

Namespace

Drupal\migrate_plus\Plugin\migrate\source

Code

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