You are here

public function UserLanguage::__construct in Open Social 8.9

Same name and namespace in other branches
  1. 8.7 modules/custom/social_language/src/Plugin/UserExportPlugin/UserLanguage.php \Drupal\social_language\Plugin\UserExportPlugin\UserLanguage::__construct()
  2. 8.8 modules/custom/social_language/src/Plugin/UserExportPlugin/UserLanguage.php \Drupal\social_language\Plugin\UserExportPlugin\UserLanguage::__construct()
  3. 10.3.x modules/custom/social_language/src/Plugin/UserExportPlugin/UserLanguage.php \Drupal\social_language\Plugin\UserExportPlugin\UserLanguage::__construct()
  4. 10.0.x modules/custom/social_language/src/Plugin/UserExportPlugin/UserLanguage.php \Drupal\social_language\Plugin\UserExportPlugin\UserLanguage::__construct()
  5. 10.1.x modules/custom/social_language/src/Plugin/UserExportPlugin/UserLanguage.php \Drupal\social_language\Plugin\UserExportPlugin\UserLanguage::__construct()
  6. 10.2.x modules/custom/social_language/src/Plugin/UserExportPlugin/UserLanguage.php \Drupal\social_language\Plugin\UserExportPlugin\UserLanguage::__construct()

UserExportPluginBase 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.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.

\Drupal\Core\Database\Connection $database: The database connection.

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

Overrides UserExportPluginBase::__construct

File

modules/custom/social_language/src/Plugin/UserExportPlugin/UserLanguage.php, line 49

Class

UserLanguage
Provides a 'UserLanguage' user export row.

Namespace

Drupal\social_language\Plugin\UserExportPlugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, DateFormatterInterface $date_formatter, Connection $database, LanguageManagerInterface $language_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $date_formatter, $database);
  $this->languageManager = $language_manager;
}