Add availability to alter $exclude_field_types and $exclude_field_names

Created on 22 March 2024, 3 months ago

Problem/Motivation

I am using scheduler and content moderation and I have a module extra called scheduler_content_moderation. This module adds publish states and unpublish states to the scheduler date for publishing and publishing.
This ends being sent to translate and causes a lot of errors since it is the key sent to translate and that should not change value.

Steps to reproduce

Proposed resolution

Add in extractTranslatableData function in ContentEntitySource.php this line so we can alter the variables to exclude more fields easily. These are base fields therefore I cannot alter them with other alters I have tried so far.
\Drupal::moduleHandler()->alter('tmgmt_exclude_fields', $exclude_field_types, $exclude_field_names);

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Core

Created by

πŸ‡³πŸ‡±Netherlands e.escribano

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