Problem/Motivation

I don't think having this hook makes sense given the field is an entity base field and not a field attached to a bundle. Possibly left over from the previous implementation.

Proposed resolution

Remove code and see what the testbot says.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sam152 created an issue. See original summary.

Sam152’s picture

Status: Active » Needs review
FileSize
2 KB
timmillwood’s picture

Issue tags: +Workflow Initiative

This kinda makes me wonder if we need to a test to loop through all entity types (content and config) to assert the moderation_state is on the entity types it should be, and not on the entity types it shouldn't be. Thoughts?

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

True, we are adding it at core/modules/content_moderation/src/EntityTypeInfo.php:305 now.

Nice catch and simplification!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 8af814f and pushed to 8.3.x. Thanks!

  • alexpott committed 8af814f on 8.3.x
    Issue #2843678 by Sam152: Remove dead code in...

  • alexpott committed 8af814f on 8.4.x
    Issue #2843678 by Sam152: Remove dead code in...

  • alexpott committed 8af814f on 8.4.x
    Issue #2843678 by Sam152: Remove dead code in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.