$layout_config deprecated - FIX

Created on 19 December 2023, 6 months ago
Updated 12 February 2024, 4 months ago

On upgrade to Drupal 10.2 it threw error

Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutLoad::$layout_config is deprecated in Drupal\at_core\Layout\LayoutLoad->__construct() (line 36 of themes/adaptivetheme/at_core/src/Layout/LayoutLoad.php).

FIX ADD protection at line 36 of LayoutLoad.php as below

* The active regions on page load.
*/
protected $active_regions;

+ /**
+ * The layout config on page load.
+ */
+ protected $layout_config;

/**
* LayoutInterface constructor.

🐛 Bug report
Status

Fixed

Version

5.0

Component

Miscellaneous

Created by

🇺🇸United States bobburns

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024