You are here

public function EntityContentBase::__construct in Multiversion 8

Builds an user entity destination.

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.

EntityStorageInterface $storage: The storage for this entity type.

array $bundles: The list of bundles this entity type has.

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.

\Drupal\Core\Password\PasswordInterface $password: The password service.

Overrides EntityContentBase::__construct

File

src/Plugin/migrate/destination/EntityContentBase.php, line 73

Class

EntityContentBase
Migration destination class for content entities.

Namespace

Drupal\multiversion\Plugin\migrate\destination

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles, EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager, PasswordInterface $password) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $storage, $bundles, $entity_manager, $field_type_manager);

  // Since password records from the earlier schema already was hashed we
  // disable hashing so that passwords stay intact.
  $this->password = $password;
  $this->storage
    ->resetCache();
}