From f154a0e08bbfb3fdb16d1c0b32368b7535c28008 Mon Sep 17 00:00:00 2001 From: webchick Date: Mon, 31 Aug 2015 09:33:11 -0700 Subject: [PATCH] Issue #2547933 by googletorp, jhodgdon: Code example for non deprecated use of entity_get_display is wrong --- core/includes/entity.inc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/core/includes/entity.inc b/core/includes/entity.inc index 99363627ec..52ae51e34f 100644 --- a/core/includes/entity.inc +++ b/core/includes/entity.inc @@ -443,20 +443,20 @@ function entity_view_multiple(array $entities, $view_mode, $langcode = NULL, $re * * @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. * If the display is available in configuration use: - * @code + * @code * \Drupal::entityManager()->getStorage('entity_view_display')->load($entity_type . '.' . $bundle . '.' . $view_mode); - * @endcode + * @endcode * When the display is not available in configuration, you can create a new * EntityViewDisplay object using: - * @code - * $values = ('entity_view_display', array( - * 'targetEntityType' => $entity_type, - * 'bundle' => $bundle, - * 'mode' => $view_mode, - * 'status' => TRUE, - * )); - * \Drupal::entityManager()->getStorage('entity_view_display')->create($values); - * @endcode + * @code + * $values = array( + * 'targetEntityType' => $entity_type, + * 'bundle' => $bundle, + * 'mode' => $view_mode, + * 'status' => TRUE, + * )); + * \Drupal::entityManager()->getStorage('entity_view_display')->create($values); + * @endcode * * @see \Drupal\Core\Entity\EntityStorageInterface::create() * @see \Drupal\Core\Entity\EntityStorageInterface::load() -- GitLab