Skip to content

Commit

Permalink
[create:nodes] Using a default language code (#3915)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtodor authored and LOBsTerr committed Jul 17, 2018
1 parent 2f90c7e commit 9b0a7b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Command/Create/NodesCommand.php
Expand Up @@ -177,7 +177,10 @@ function ($contentType) use ($bundles) {
$input->setOption('language', $language);
} else {
// If 'language' module is not enabled.
$input->setOption('language', LanguageInterface::LANGCODE_NOT_SPECIFIED);
$input->setOption(
'language',
\Drupal::languageManager()->getDefaultLanguage()->getId()
);
}
}

Expand Down

0 comments on commit 9b0a7b0

Please sign in to comment.