Allow to alter exported fields

Created on 6 November 2020, about 4 years ago
Updated 24 March 2023, over 1 year ago

Problem/Motivation

Some entity types can declare base fields as computed to prevent having to store their data.
Modules can alter the base fields per entity type or per bundle using dedicated hooks so they can also add new computed (or not) fields.
We should be able to alter the fields that are exported so every project can define its own rules.

Proposed resolution

Add an alter hook to filter out fields from the field list in \Drupal\default_content\Normalizer\ContentEntityNormalizer::getFieldsToNormalize()

✨ Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France duaelfr Montpellier, France

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