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 83994942a135..cc5a68cb7353 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 4a41c5f29567..0cbc859155a4 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;