Commit 94fade95 authored by jhodgdon's avatar jhodgdon

Issue #2176085 by jessebeach, valthebald: Make code comment in entity_get_render_display() clearer

parent af85d776
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment