Issue #2554841 by mikeryan: FieldException message failing to embed failed field name/entity type

8.0.x
webchick 2015-08-25 11:22:36 -07:00
parent b315b3b8c5
commit 3a38bef3fd
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ class FieldConfig extends FieldConfigBase implements FieldConfigInterface {
if (!$this->fieldStorage) {
$fields = $this->entityManager()->getFieldStorageDefinitions($this->entity_type);
if (!isset($fields[$this->field_name])) {
throw new FieldException('Attempt to create a field {$this->field_name} that does not exist on entity type {$this->entity_type}.');
throw new FieldException("Attempt to create a field {$this->field_name} that does not exist on entity type {$this->entity_type}.");
}
if (!$fields[$this->field_name] instanceof FieldStorageConfigInterface) {
throw new FieldException("Attempt to create a configurable field of non-configurable field storage {$this->field_name}.");