Details formatter together with layout_builder throws a fatal error
TypeError: Argument 1 passed to Drupal\Core\Render\Element::children() must be of the type array, null given, called in /.../docroot/core/lib/Drupal/Core/Field/FormatterBase.php on line 93 in Drupal\Core\Render\Element::children() (line 71 of core/lib/Drupal/Core/Render/Element.php).

Comments

Sweetchuck created an issue. See original summary.

sweetchuck’s picture

Assigned: sweetchuck » Unassigned
Status: Active » Needs review
StatusFileSize
new746 bytes
edemidenko’s picture

Tested and it works as expected with #2

Verification steps (just in case):
- Enable 'layout_builder' module
- Navigate to 'Manage fields' of some content type (ex. article) and add 'FAQ field'
- Navigate to 'Manage display' and choose 'HTML details' as a formatter
- Enable 'Use Layout Builder' and Save
- After click on 'Manage layout' button will appear a fatal error

pifagor’s picture

Status: Needs review » Reviewed & tested by the community
alex_optim’s picture

Good for me.

pifagor’s picture

  • pifagor committed 62a01fc on 8.x-1.x authored by Sweetchuck
    Issue #3108523 by Sweetchuck, pifagor, alex_optim, edemidenko: Details...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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