Add event to transform raw data before mapping

Created on 30 January 2020, almost 5 years ago
Updated 21 February 2024, 9 months ago

As far as I can tell, the 'extract raw data' event is dispatched when reverse-mapping an external entity's field values to the structure expected by the entity type's endpoint. And the 'map raw data' event is dispatched after some retrieved endpoint data is mapped to an entity's field values.

I needed an event to transform raw data before mapping occurs, due to malformatted endpoint response data. The attached patch adds an event before mapping occurs, i.e. inside the $raw_data loop in ExternalEntityStorage's mapFromRawStorageData() method.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada bgilhome Victoria

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024