Skip to content
Permalink
Browse files

[create:nodes] Using a default language code (#3915)

  • Loading branch information...
mtodor authored and LOBsTerr committed Jul 17, 2018
1 parent 2f90c7e commit 9b0a7b0b09638c3bb42b4bd803467b26964d5f2e
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Command/Create/NodesCommand.php
@@ -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()
);
}
}

0 comments on commit 9b0a7b0

Please sign in to comment.
You can’t perform that action at this time.