SwiperFormatterStyle::renderFields() must be public

Created on 13 May 2024, about 2 months ago
Updated 15 May 2024, about 1 month ago

Problem/Motivation

When trying to change a View's format settings to use "Swiper Formatter", I get the following error message: PHP Fatal error: Access level to Drupal\swiper_formatter\Plugin\views\style\SwiperFormatterStyle::renderFields() must be public (as in class Drupal\views\Plugin\views\style\StylePluginBase) in D:\Production\drupal-b\modules\contrib\swiper_formatter\src\Plugin\views\style\SwiperFormatterStyle.php on line 171

Proposed resolution

A patch or MR needs to be made to change SwiperFormatterStyle.php:171:
old: protected function renderFields(array $result) {
new: public function renderFields(array $result) {

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ryankavalsky

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024