function LocaleTranslation::__construct
Same name in this branch
- main core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::__construct()
Same name and namespace in other branches
- 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()
- 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()
- 8.9.x core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::__construct()
- 8.9.x core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php \Drupal\locale\Plugin\QueueWorker\LocaleTranslation::__construct()
Constructs a \Drupal\Component\Plugin\PluginBase object.
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.
Overrides PluginBase::__construct
File
-
core/
modules/ locale/ src/ Plugin/ QueueWorker/ LocaleTranslation.php, line 31
Class
- LocaleTranslation
- Executes interface translation queue tasks.
Namespace
Drupal\locale\Plugin\QueueWorkerCode
public function __construct(array $configuration, string $plugin_id, array $plugin_definition, protected ModuleHandlerInterface $moduleHandler, QueueInterface $queue, protected readonly CallableResolver $callableResolver) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->queue = $queue;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.