Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Having the following:
Warning: Invalid argument supplied for foreach() in varbase_layout_builder_form_layout_builder_configure_section_alter()
Steps to reproduce
When I delete sections
When I reset to the default layout for a content type
When I revert the old variant with a changed styling options fields ( new styling options fields, or removed fields )
Proposed resolution
- Add more checks on objects and arrays
Remaining tasks
FixTestRelease
User interface changes
N/A
API changes
Styling options objects and arrays should be valid with the current active configs before processing.
Data model changes
N/A
Comments
Comment #2
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #6
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedgulp compile
yarn phpcs
yarn phpcbf
yarn eslint
yarn stylelint
Comment #7
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #8
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commented