Skip to content

Fix for null value in Views [3439653]

Closes #3439653 Simplest solution to fix null value issue in Views. FieldFormatter classes created in this module return directly render arrays in "viewElements" method, instead of returning array of elements (counted from 0), which is the requirement for "viewElements" method described in implemented FormatterInterface (web/core/lib/Drupal/Core/Field/FormatterInterface.php#L88). This issue affects that in static function Element::children() null value is returned and this function is utilized when field is rendered in Views.

Merge request reports