diff --git a/src/Seed.php b/src/Seed.php index 300403cb..4a4f4d5e 100644 --- a/src/Seed.php +++ b/src/Seed.php @@ -265,6 +265,7 @@ public static function seedNode(EntityInterface $entity, $langcode = NULL) { $rid = $entity->get('vid')->value; $url = Utility::getCanonicalUrl('node', $nid, $langcode); + $defaultLangcode = \Drupal::languageManager()->getDefaultLanguage()->getId(); // If this is the front/home page, rewrite URL as /. $site_config = \Drupal::config('system.site');