Render callbacks must be a closure or implement TrustedCallbackInterface or RenderCallbackInterface

Created on 7 May 2024, 6 months ago
Updated 31 July 2024, 4 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.71.5 2024