diff --git a/core/lib/Drupal/Core/Entity/Annotation/DisplayComponent.php b/core/lib/Drupal/Core/Entity/Annotation/DisplayComponent.php index e2178c2..9bd4328 100644 --- a/core/lib/Drupal/Core/Entity/Annotation/DisplayComponent.php +++ b/core/lib/Drupal/Core/Entity/Annotation/DisplayComponent.php @@ -1,10 +1,5 @@ isAllowed() ? $formatter->view($items, $view_langcode) : []; + // Apply the field access cacheability metadata to the render array. $this->renderer->addCacheableDependency($build_list[$id][$name], $field_access); } } diff --git a/core/lib/Drupal/Core/Entity/EntityDisplayBase.php b/core/lib/Drupal/Core/Entity/EntityDisplayBase.php index 1611a05..9f82679 100644 --- a/core/lib/Drupal/Core/Entity/EntityDisplayBase.php +++ b/core/lib/Drupal/Core/Entity/EntityDisplayBase.php @@ -353,7 +353,6 @@ public function setComponent($name, array $options = array()) { } // Ensure we always have an empty settings and array. - // @TODO, is this the right place to ensure label is set? $options += ['settings' => [], 'third_party_settings' => []]; $this->content[$name] = $options; diff --git a/core/lib/Drupal/Core/Entity/Plugin/DisplayComponent/ExtraFieldDisplayComponentHandler.php b/core/lib/Drupal/Core/Entity/Plugin/DisplayComponent/ExtraFieldDisplayComponentHandler.php index 6db98e4..755e377 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/DisplayComponent/ExtraFieldDisplayComponentHandler.php +++ b/core/lib/Drupal/Core/Entity/Plugin/DisplayComponent/ExtraFieldDisplayComponentHandler.php @@ -1,10 +1,5 @@