Deprecated function (still)

Created on 14 April 2024, 2 months ago
Updated 8 May 2024, about 2 months ago

I'm sorry but I still get the error:

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

AdaptiveTheme 8.x-5.3, just updated.
Drupal: 10.2.5
PHP: 8.2.18

class Layout {

  protected $theme_name;
  protected $layout_markup;
  protected $layout_css;
  protected $layout_name;
  protected $layout_path; // <------ this line should be added
  protected $layout_cid; // <------ this line should be added 

  /**
   * Layout constructor.
   *
   * @param $theme_name
   * @param $layout_name
   */
  public function __construct($theme_name, $layout_name) {
    $this->theme_name = $theme_name;
    $this->layout_name = $layout_name;
    $this->layout_path = \Drupal::service('extension.list.theme')->getPath($this->theme_name) . '/layout/' . $this->layout_name;
    $this->layout_cid = $this->theme_name . ':' . $this->layout_name;
  }
๐Ÿ› Bug report
Status

Fixed

Version

5.3

Component

Module Support

Created by

๐Ÿ‡ฉ๐Ÿ‡ฐDenmark Uv516 Denmark

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024