diff --git a/oe_multilingual.services.yml b/oe_multilingual.services.yml index 4a8a688..58b2830 100644 --- a/oe_multilingual.services.yml +++ b/oe_multilingual.services.yml @@ -9,5 +9,5 @@ services: class: Drupal\oe_multilingual\ContentLanguageSwitcherProvider arguments: ['@language_manager', '@path.matcher', '@oe_multilingual.helper'] oe_multilingual.local_translations_batcher: - class: \Drupal\oe_multilingual\LocalTranslationsBatcher + class: Drupal\oe_multilingual\LocalTranslationsBatcher arguments: ['@module_handler', '@theme_handler', '@language_manager', '@extension.list.module', '@extension.list.theme', '@extension.list.profile'] diff --git a/src/LocalTranslationsBatcher.php b/src/LocalTranslationsBatcher.php index 204c045..18e0983 100644 --- a/src/LocalTranslationsBatcher.php +++ b/src/LocalTranslationsBatcher.php @@ -62,7 +62,7 @@ class LocalTranslationsBatcher { protected $profileExtensionList; /** - * MultilingualCommands constructor. + * LocalTranslationsBatcher constructor. * * @param \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler * The module handler. @@ -91,6 +91,8 @@ public function __construct(ModuleHandlerInterface $moduleHandler, ThemeHandlerI * * @param array $langcodes * The optional langcodes to import in. + * + * @see \Drupal\locale\Form\TranslationStatusForm::submitForm() */ public function createBatch(array $langcodes = []): void { $this->moduleHandler->loadInclude('locale', 'fetch.inc'); @@ -141,7 +143,7 @@ protected function getExtensionsToTranslate(): array { continue; } - // This will include also profiles. + // The module handler checks also profiles. if (!$this->moduleHandler->moduleExists($name) && !$this->themeHandler->themeExists($name)) { continue; }