Created on 9 February 2024, 5 months ago
Updated 27 February 2024, 4 months ago

Problem/Motivation

Since site settings are content entities, and content entities can be revisionable, it would be a good feature to add revisionability to the site settings entity.

This allows for a better audit trail to find out which user changed a particular setting at what time.

Proposed resolution

Add content entity revision support. Drupal 10 provides default UIs for content entity revisions.

Remaining tasks

* Update entity definition to define `revision_table`, `show_revision_ui` and `revision_metadata_keys` properties.
* Write site_settings.post_update.php logic to make the entity revisionable.
* Add revision UI - see https://www.drupal.org/node/3160443 β†’

User interface changes

* A new revisions tab will be available on the site settings entities.

API changes

none

Data model changes

Database will provide extra revision tables. Site setting entities being loaded will just be the latest revision, providing the same output as before.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium svendecabooter Gent

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