Use DependencySerializationTrait in base class

Created on 25 April 2024, 2 months ago
Updated 21 May 2024, about 1 month 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.69.0 2024