diff --git a/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php b/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php index 2410990..8b3dc95 100644 --- a/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php +++ b/core/modules/field/lib/Drupal/field/Entity/FieldConfig.php @@ -316,7 +316,7 @@ protected function preSaveNew(EntityStorageControllerInterface $storage_controll } // Disallow reserved field names. - $disallowed_field_names = array_keys($entity_manager->getFieldDefinitions($this->entity_type)); + $disallowed_field_names = array_keys($entity_manager->getBaseFieldDefinitions($this->entity_type)); if (in_array($this->name, $disallowed_field_names)) { throw new FieldException(format_string('Attempt to create field %name which is reserved by entity type %type.', array('%name' => $this->name, '%type' => $this->entity_type))); }