From 372781697e5da34e868be03ec24aab225ddb06b4 Mon Sep 17 00:00:00 2001 From: git Date: Thu, 18 Jun 2020 13:27:08 -0400 Subject: [PATCH] Issue #2868890 by manicato, arx-e: Flexslider field formatter failure in Views --- .../src/Plugin/Field/FieldFormatter/FlexsliderFormatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flexslider_fields/src/Plugin/Field/FieldFormatter/FlexsliderFormatter.php b/flexslider_fields/src/Plugin/Field/FieldFormatter/FlexsliderFormatter.php index 4c3630c..0f33821 100644 --- a/flexslider_fields/src/Plugin/Field/FieldFormatter/FlexsliderFormatter.php +++ b/flexslider_fields/src/Plugin/Field/FieldFormatter/FlexsliderFormatter.php @@ -65,8 +65,8 @@ public function settingsForm(array $form, FormStateInterface $form_state) { public function viewElements(FieldItemListInterface $items, $langcode) { $images = parent::viewElements($items, $langcode); - - return $this->viewImages($images, $this->getSettings()); + $elements[] = $this->viewImages($images, $this->getSettings()); + return $elements; }