diff --git a/core/modules/entity_reference/src/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php b/core/modules/entity_reference/src/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php index 7da2e76..54a1ae7 100644 --- a/core/modules/entity_reference/src/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php +++ b/core/modules/entity_reference/src/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php @@ -69,8 +69,8 @@ public function viewElements(FieldItemListInterface $items) { /** @var $referenced_entity \Drupal\Core\Entity\EntityInterface */ if ($referenced_entity = $item->entity) { $label = $referenced_entity->label(); - // If the link is to be displayed and the entity has a uri, - // display a link. + // If the link is to be displayed and the entity has a uri, display a + // link. if ($this->getSetting('link') && $uri = $referenced_entity->urlInfo()) { $elements[$delta] = array( '#type' => 'link', @@ -81,7 +81,7 @@ public function viewElements(FieldItemListInterface $items) { $elements[$delta]['#options'] += array('attributes' => array()); $elements[$delta]['#options']['attributes'] += $item->_attributes; // Unset field item attributes since they have been included in the - // formatter output and should not be rendered in the field template. + // formatter output and shouldn't be rendered in the field template. unset($item->_attributes); } }