diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldItemList.php b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldItemList.php index 32bea80..eca3358 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldItemList.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigFieldItemList.php @@ -40,7 +40,15 @@ public function getFieldDefinition() { if (!isset($this->instance)) { $entity = $this->getEntity(); $instances = FieldAPI::fieldInfo()->getBundleInstances($entity->entityType(), $entity->bundle()); - $this->instance = $instances[$this->getName()]; + if (isset($instances[$this->getName()])) { + $this->instance = $instances[$this->getName()]; + } + else { + // For base fields, fall back to the parent implementation. + // @todo: Inject the field definition with + // https://drupal.org/node/2047229. + return parent::getFieldDefinition(); + } } return $this->instance; }