Deprecated functions in LayoutSubmit.php

Created on 1 March 2024, 4 months ago
Updated 8 May 2024, about 2 months ago

Problem/Motivation

After making changes to Adaptive Theme subtheme in Layouts (under Appearance) and submitting them, the following error messages show up:

Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutSubmit::$layout_config is deprecated in Drupal\at_core\Layout\LayoutSubmit->__construct() (line 36 of themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php).
Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutSubmit::$css_config is deprecated in Drupal\at_core\Layout\LayoutSubmit->__construct() (line 37 of themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php).
Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutSubmit::$layout_name is deprecated in Drupal\at_core\Layout\LayoutSubmit->__construct() (line 38 of themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php).
Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutSubmit::$layout_path is deprecated in Drupal\at_core\Layout\LayoutSubmit->__construct() (line 39 of themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php).
Deprecated function: Creation of dynamic property Drupal\at_core\Layout\LayoutSubmit::$form_values is deprecated in Drupal\at_core\Layout\LayoutSubmit->__construct() (line 40 of themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php).

We use Drupal 10.2.3 and PHP 8.2.16.

Steps to reproduce

  1. Install Adaptive Theme.
  2. Create a custom subtheme using the AT Theme Generator.
  3. Make a change under Layouts.
  4. Save the change.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

5.2

Component

Layouts (Page Layout, Layout Plugin)

Created by

🇨🇿Czech Republic ljansova

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024