You are here

public function Authmap::__construct in External Authentication 2.0.x

Same name in this branch
  1. 2.0.x src/Authmap.php \Drupal\externalauth\Authmap::__construct()
  2. 2.0.x src/Plugin/migrate/destination/Authmap.php \Drupal\externalauth\Plugin\migrate\destination\Authmap::__construct()
Same name and namespace in other branches
  1. 8 src/Plugin/migrate/destination/Authmap.php \Drupal\externalauth\Plugin\migrate\destination\Authmap::__construct()

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.

\Drupal\externalauth\AuthmapInterface $authmap: The Authmap handling class.

\Drupal\user\UserStorageInterface $user_storage: The user storage.

Overrides DestinationBase::__construct

File

src/Plugin/migrate/destination/Authmap.php, line 52

Class

Authmap
Drupal 8 authmap destination.

Namespace

Drupal\externalauth\Plugin\migrate\destination

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, AuthmapInterface $authmap, UserStorageInterface $user_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
  $this->authmap = $authmap;
  $this->userStorage = $user_storage;
}