From 94fade95378594285877ba9a2966c3a2ccf1f04e Mon Sep 17 00:00:00 2001
From: Jennifer Hodgdon <yahgrp@poplarware.com>
Date: Thu, 23 Jan 2014 11:52:14 -0800
Subject: [PATCH] Issue #2176085 by jessebeach, valthebald: Make code comment
 in entity_get_render_display() clearer

---
 core/includes/entity.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/includes/entity.inc b/core/includes/entity.inc
index 591f36c6aed0..964a7beadd5a 100644
--- a/core/includes/entity.inc
+++ b/core/includes/entity.inc
@@ -623,8 +623,8 @@ function entity_get_render_display(EntityInterface $entity, $view_mode) {
   $bundle = $entity->bundle();
   $render_view_mode = 'default';
 
-  // Look at the default display and display for the view mode, and fallback to
-  // the former if the latter does not exist is disabled.
+  // Fall back to the default display if the display for the view mode does
+  // not exist or is disabled.
   if ($view_mode != 'default') {
     $ids = array(
       'default' => $entity_type . '.' . $bundle . '.default',
-- 
GitLab