You are here

public function UserLangcode::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/src/Plugin/migrate/process/UserLangcode.php \Drupal\user\Plugin\migrate\process\UserLangcode::__construct()
  2. 10 core/modules/user/src/Plugin/migrate/process/UserLangcode.php \Drupal\user\Plugin\migrate\process\UserLangcode::__construct()

Constructs a UserLangcode object.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\Core\Language\LanguageManager $language_manager: The language manager service.

Overrides PluginBase::__construct

File

core/modules/user/src/Plugin/migrate/process/UserLangcode.php, line 40

Class

UserLangcode
Provides a process plugin for the user langcode.

Namespace

Drupal\user\Plugin\migrate\process

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LanguageManager $language_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->languageManager = $language_manager;
}