Problem/Motivation

I've got this error:

Drupal\Core\Security\UntrustedCallbackException: Render #lazy_builder callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was \Drupal\insert_view\Plugin\Filter\InsertView::build. See https://www.drupal.org/node/2966725

Steps to reproduce

Install and configure this module on D9.

CommentFileSizeAuthor
#3 3162547-3.patch921 bytespaulocs
#2 issue-3162547.patch1012 byteslobodakyrylo

Comments

lobodacyril created an issue. See original summary.

lobodakyrylo’s picture

StatusFileSize
new1012 bytes

This patch helped me

paulocs’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new921 bytes

Patch looks good to me. I attached a new one without the white space.

Thanks @lobodacyril :)

paulocs’s picture

Status: Reviewed & tested by the community » Fixed

Fixed in dev branch!

  • paulocs committed f3051d3 on 8.x-1.x authored by lobodacyril
    Issue #3162547 by lobodacyril, paulocs: D9: Render #lazy_builder...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.