public function TempStore::__construct in Multiversion 8
Same name in this branch
- 8 src/Plugin/migrate/source/TempStore.php \Drupal\multiversion\Plugin\migrate\source\TempStore::__construct()
- 8 src/Plugin/migrate/destination/TempStore.php \Drupal\multiversion\Plugin\migrate\destination\TempStore::__construct()
Constructor.
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.
MigrationInterface $migration: The migration.
EntityManagerInterface $entity_manager: The entity manager.
KeyValueExpirableFactoryInterface $temp_store_factory: The temp store factory.
Overrides SourcePluginBase::__construct
File
- src/
Plugin/ migrate/ source/ TempStore.php, line 55
Class
- TempStore
- User source from json file.
Namespace
Drupal\multiversion\Plugin\migrate\sourceCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityManagerInterface $entity_manager, KeyValueExpirableFactoryInterface $temp_store_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $entity_manager);
$this->tempStore = $temp_store_factory
->get('multiversion_migration_' . $this->entityTypeId);
}