diff --git a/src/Command/Create/NodesCommand.php b/src/Command/Create/NodesCommand.php index 3e8e6f929..54c6bfee9 100644 --- a/src/Command/Create/NodesCommand.php +++ b/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() + ); } }