You are here

public function EntityUser::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Plugin/migrate/destination/EntityUser.php \Drupal\user\Plugin\migrate\destination\EntityUser::__construct()

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\migrate\Plugin\MigratePluginManager $plugin_manager: The migrate plugin manager.

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

\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type plugin manager service.

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

Overrides EntityContentBase::__construct

File

core/modules/user/src/Plugin/migrate/destination/EntityUser.php, line 61
Contains \Drupal\user\Plugin\migrate\destination\EntityUser.

Class

EntityUser
Plugin annotation @MigrateDestination( id = "entity:user" )

Namespace

Drupal\user\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);
  if (isset($configuration['md5_passwords'])) {
    $this->password = $password;
  }
}