- Issue created by @Mav_fly
- Assigned to shubham_jain
- @shubham_jain opened merge request.
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 11:22am 14 September 2023 - 🇮🇳India shubham_jain
/** * To solve the dynamic property issue. */ protected $layout_config;
@Mav_fly, as the comment suggests this is to solve the Deprecated function because the function is deprecated but the variable is the main reason behind it.
To solve this issue, you can do two things. First which I have done second is add following code instead of first one.
#[\AllowDynamicProperties] class LayoutLoad extends Layout {
You can use whatever you seems fit.
I can confirm your PR looks to solve the issue, however, by testing I discovered 2 more deprecations when saving the extension settings:
Creation of dynamic property Drupal\at_core\Layout\Layout::$layout_path is deprecated in Drupal\at_core\Layout\Layout->__construct() (line 27 of /at_core/src/Layout/Layout.php) Creation of dynamic property Drupal\at_core\Layout\Layout::$layout_cid is deprecated in Drupal\at_core\Layout\Layout->__construct() (line 28 of /at_core/src/Layout/Layout.php)