- Issue created by @amanire
- Status changed to Needs review
6 months ago 3:29pm 17 May 2024
Seeing the following warning in watchdog log:
Warning: Undefined array key "context_visibility" in layout_builder_context_form_alter() (line 33 of /app/web/modules/contrib/layout_builder_context/layout_builder_context.module)
Configuring a layout builder section that has not previously used Layout Builder Context and check PHP notices in the log.
Relevant line 33:
$contexts = is_array($configuration["context_visibility"]) ? $configuration["context_visibility"] : [];
Just use the null coalescing operator, It's cleaner and does the trick.
Needs review
1.0
Code