diff --git a/core/lib/Drupal/Core/Entity/Plugin/DisplayComponent/FieldDisplayComponentHandler.php b/core/lib/Drupal/Core/Entity/Plugin/DisplayComponent/FieldDisplayComponentHandler.php index 0b51039..e7aee4b 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/DisplayComponent/FieldDisplayComponentHandler.php +++ b/core/lib/Drupal/Core/Entity/Plugin/DisplayComponent/FieldDisplayComponentHandler.php @@ -188,16 +188,7 @@ protected function getFieldDefinition($field_name) { * Returns the definitions of the fields that are candidate for display. */ protected function getFieldDefinitions() { - $entity_type = $this->context['entity_type']; - $bundle = $this->context['bundle']; - $display_context = $this->context['display_context']; - $definitions = $this->entityManager->getFieldDefinitions($entity_type, $bundle); - - // The display only cares about fields that specify display options. - // Discard base fields that are not rendered through formatters / widgets. - return array_filter($definitions, function (FieldDefinitionInterface $definition) use ($display_context) { - return $definition->getDisplayOptions($display_context); - }); + return $this->entityManager->getFieldDefinitions($this->context['entity_type'], $this->context['bundle']); } }