Allow to extend IframeDefaultFormatter and iframeIframe() method

Created on 25 October 2023, about 1 year ago

Problem/Motivation

Call to iframeIframe() method within IframeDefaultFormatter is made in this way:
$elements[$delta] = self::iframeIframe($item->title, $item->url, $item);

It means that even if you extend this class and want to override only the content of iframeIframe() method it is not possible because it calls the static method using self:: instead of static::

Steps to reproduce

Extend IframeDefaultFormatter class and override iframeIframe() method.
Confirm that child class iframeIframe() implementation is not invoked, but the parent instead.

Proposed resolution

Call the method using static:: instead of self::

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Miscellaneous

Created by

🇪🇸Spain plopesc Valladolid

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

Comments & Activities

Production build 0.71.5 2024