Allow to alter exported fields

Created on 6 November 2020, over 3 years ago
Updated 20 July 2023, 11 months 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

Needs work

Version

2.0

Component

Code

Created by

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

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

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.69.0 2024