Skip to content

Commit

Permalink
OPENEUROPA-1922-2: Minor corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
brummbar committed Jun 21, 2019
1 parent e5f61dd commit 9bf0eaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion oe_multilingual.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
6 changes: 4 additions & 2 deletions src/LocalTranslationsBatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class LocalTranslationsBatcher {
protected $profileExtensionList;

/**
* MultilingualCommands constructor.
* LocalTranslationsBatcher constructor.
*
* @param \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler
* The module handler.
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 9bf0eaf

Please sign in to comment.