Skip to content

Follow-up: Variable layout_info is now null in preprocessors #7153

@indigoxela

Description

@indigoxela

Description of the bug

Having a theme, that relies on $variables['layout_info'] being available and contain values.

Update to BackdropCMS 1.34.x and inspect log

Actual behavior

Warning: Trying to access array offset on value of type null in THEME_preprocess_layout__XXX() (... themes/YOURTHEME/template.php).

Expected behavior

Values available as before 1.34.x, I guess. No need to update themes.

Additional information

  • Backdrop CMS version: 1.34.x

Introduced with Issue #6808: Allow to specify a layout template type.

The variable still exists, but is NULL now, so one can no longer access keys like name

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions