Problem/Motivation

#3147495: Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface

Steps to reproduce

Given that a content type is using the paragraph component field
When a new paragraph been added
Then an AJAX will have a fatal error

The website encountered an unexpected error. Please try again later.

Drupal\Core\Security\UntrustedCallbackException: Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was field_group_form_pre_render. See https://www.drupal.org/node/2966725 in Drupal\Core\Render\Renderer->doTrustedCallback() (line 96 of core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php).
Drupal\Core\Render\Renderer->doCallback('#pre_render', 'field_group_form_pre_render', Array) (Line: 372)

Proposed resolution

Update configs to work with Drupal 9 + Field Group

Remaining tasks

  • Change form display config
  • Test
  • Automated testing
  • Release

User interface changes

None

API changes

None

Data model changes

None

Comments

RajabNatshah created an issue. See original summary.

  • RajabNatshah committed 2436a86 on 9.0.x
    Issue #3180091: Change Form Display configs for all paragraph types to...
rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Status: Active » Needs review
Issue tags: +varbase-9.0.0, +varbase-9.0.0-beta1
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Issue summary: View changes

  • RajabNatshah committed 7013896 on 9.0.x
    Issue #3180091: Change Form Display configs for all paragraph types to...
rajab natshah’s picture

rajab natshah’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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