summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php')
-rw-r--r--core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
index a031ac8..ca6ed7a 100644
--- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
+++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
@@ -189,7 +189,7 @@ class ConfigEntityStorage extends EntityStorageBase implements ConfigEntityStora
*/
protected function doCreate(array $values) {
// Set default language to site default if not provided.
- $values += array('langcode' => $this->languageManager->getDefaultLanguage()->getId());
+ $values += array($this->langcodeKey => $this->languageManager->getDefaultLanguage()->getId());
$entity = new $this->entityClass($values, $this->entityTypeId);
return $entity;