Problem/Motivation

Deprecated function: Creation of dynamic property Drupal\layout_paragraphs\LayoutParagraphsLayout::$entity is deprecated in Drupal\layout_paragraphs\LayoutParagraphsLayout->setEntity() (line 112 of modules/contrib/layout_paragraphs/src/LayoutParagraphsLayout.php).

Steps to reproduce

In my case the error is triggered after calling insertIntoRegion()

Proposed resolution

Declare the property on the class.

Remaining tasks

Declare the property on the class.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dahousecat created an issue. See original summary.

dahousecat’s picture

abhishek_gupta1 made their first commit to this issue’s fork.

abhishek_gupta1’s picture

Status: Active » Needs review

@justin2pin, above patch fixed the issue. I have tested locally. also created MR. please review it once.

naveenvalecha’s picture

Status: Needs review » Reviewed & tested by the community

The fix is straightforward
LGTM

sethhill’s picture

Status: Reviewed & tested by the community » Fixed
sethhill’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.