Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By tim.plunkett on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
If your ConfigEntity class uses a PluginBag in order to manage its plugins, you now should implement Drupal\Core\Config\Entity\EntityWithPluginBagInterface
.
This will provide automatic handling of your plugin's configuration, keeping it in sync when an entity is saved.
If you are storing your plugin's configuration on the entity in a property other than $configuration
, you must specify that as follows in your entity class:
protected $pluginConfigKey = 'my_settings';
Impacts:
Module developers