public function State::__construct in Acquia Connector 3.x
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/ State.php, line 71
Class
- State
- The destination plugin for importing data into the state.
Namespace
Drupal\acquia_connector\Plugin\migrate\destinationCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
$this
->setConfiguration($configuration);
$this->state = $state;
$this->supportsRollback = TRUE;
}