From 2b6fade769a303fed61a95979da4e673ad845ab2 Mon Sep 17 00:00:00 2001 From: catch Date: Fri, 14 Apr 2023 16:02:10 +0100 Subject: [PATCH] Issue #3338844 by Rassoni, dpi, smustgrave, longwave: Remove mention of removed function entity_view() --- .../Field/FieldFormatter/EntityReferenceEntityFormatter.php | 2 +- core/modules/comment/comment.module | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php index 83994942a13..cc5a68cb735 100644 --- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php +++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php @@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * @FieldFormatter( * id = "entity_reference_entity_view", * label = @Translation("Rendered entity"), - * description = @Translation("Display the referenced entities rendered by entity_view()."), + * description = @Translation("Render the referenced entity."), * field_types = { * "entity_reference" * } diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 4a41c5f2956..0cbc859155a 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -525,8 +525,8 @@ function comment_preview(CommentInterface $comment, FormStateInterface $form_sta // parent entity output rendering the comment form and the comment form // rendering the parent entity. To prevent this infinite loop we temporarily // set the value of the comment field on a clone of the entity to hidden - // before calling entity_view(). That way when the output of the commented - // entity is rendered, it excludes the comment field output. + // before calling the entity view builder. That way when the output of + // the commented entity is rendered, it excludes the comment field output. $field_name = $comment->getFieldName(); $entity = clone $entity; $entity->$field_name->status = CommentItemInterface::HIDDEN;