Invoke hooks before and after saving an entity

Created on 11 October 2024, about 1 month ago

Problem/Motivation

There could be use cases that we need to know whether an entity has been updated by a view form field that is offered by this module, or by any other way.
The existing entity API cannot cover this case, since it cannot differentiate the origin of the save function.

Steps to reproduce

Self-explained.

Proposed resolution

I propose the introduction of 2 hooks, that will run just before and just after saving the entity through this entity.

Remaining tasks

Introduce hooks and document.

User interface changes

-

API changes

2 new hooks introduced.

Data model changes

-

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇳🇴Norway efpapado

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