Use DependencySerializationTrait in base class

Created on 25 April 2024, 7 months ago
Updated 21 May 2024, 6 months ago

Problem/Motivation

When using dependency injection in an annotation plugin one should use the DependencySerializationTrait. Otherwise one can end up in an error when the object is serialized.

Proposed resolution

Use Drupal\Core\Plugin\PluginBase instead of Drupal\Component\Plugin\PluginBase as plugin base.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany Harlor Berlin

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024