You are here

public function IdMap::__construct in Workbench Moderation to Content Moderation 8.2

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.

Overrides DestinationBase::__construct

File

src/Plugin/migrate/destination/IdMap.php, line 20

Class

IdMap
Plugin annotation @MigrateDestination( id = "id_map" )

Namespace

Drupal\wbm2cm\Plugin\migrate\destination

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration) {
  if (empty($configuration['keys'])) {
    throw new MigrateException('The id_map destination cannot be used without key definitions.');
  }
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
}