Render callbacks must be a closure or implement TrustedCallbackInterface or RenderCallbackInterface

Created on 7 May 2024, about 2 months ago

Problem/Motivation

Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)

Proposed resolution

Implement TrustedCallbackInterface

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇵🇱Poland Krzysztof Domański Poland

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

Comments & Activities

Production build 0.69.0 2024