function LocaleTranslation::__construct
Same name in this branch
- 8.9.x core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::__construct()
Same name in other branches
- 9 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::__construct()
- 9 core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php \Drupal\locale\Plugin\QueueWorker\LocaleTranslation::__construct()
- 10 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::__construct()
- 10 core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php \Drupal\locale\Plugin\QueueWorker\LocaleTranslation::__construct()
- 11.x core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::__construct()
- 11.x core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php \Drupal\locale\Plugin\QueueWorker\LocaleTranslation::__construct()
Constructs a new LocaleTranslation object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Queue\QueueInterface $queue: The queue object.
File
-
core/
modules/ locale/ src/ Plugin/ QueueWorker/ LocaleTranslation.php, line 50
Class
- LocaleTranslation
- Executes interface translation queue tasks.
Namespace
Drupal\locale\Plugin\QueueWorkerCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, ModuleHandlerInterface $module_handler, QueueInterface $queue) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->moduleHandler = $module_handler;
$this->queue = $queue;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.