diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 493ceab..efceeb6 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1972,6 +1972,7 @@ function template_preprocess_field(&$variables, $hook) { 'field-name-' . $variables['field_name_css'], 'field-type-' . $variables['field_type_css'], 'field-label-' . $element['#label_display'], + 'clearfix', ); // Add a "clearfix" class to the wrapper since we float the label and the diff --git a/core/modules/entity_reference/src/Tests/EntityReferenceFormatterTest.php b/core/modules/entity_reference/src/Tests/EntityReferenceFormatterTest.php index d51da8c..ec67c83 100644 --- a/core/modules/entity_reference/src/Tests/EntityReferenceFormatterTest.php +++ b/core/modules/entity_reference/src/Tests/EntityReferenceFormatterTest.php @@ -164,13 +164,13 @@ public function testEntityFormatter() { $items = $referencing_entity->get($field_name); $build = $items->view(array('type' => $formatter)); - $expected_rendered_name_field = '
+ $expected_rendered_name_field = '
' . $this->referencedEntity->label() . '
'; - $expected_rendered_body_field = '
+ $expected_rendered_body_field = '
Body

Hello, world!

diff --git a/core/modules/system/src/Tests/Entity/EntityViewControllerTest.php b/core/modules/system/src/Tests/Entity/EntityViewControllerTest.php index 1b4dc6b..f58552e 100644 --- a/core/modules/system/src/Tests/Entity/EntityViewControllerTest.php +++ b/core/modules/system/src/Tests/Entity/EntityViewControllerTest.php @@ -48,7 +48,7 @@ protected function setUp() { */ function testEntityViewController() { $get_label_markup = function($label) { - return '

+ return '

' . $label . '