move NodeInterface::PUBLISHED and CommentInterface::PUBLISHED/NOT_PUBLISHED to EntityPublishedInterface

Created on 7 May 2025, 10 days ago

Problem/Motivation

Now that we have EntityPublishedInterface, any entity type can have a 'published' field.

But the useful constants for this field's value are only on the node and comment entity interfaces.

Steps to reproduce

Proposed resolution

Move these constants to EntityPublishedInterface.

Remaining tasks

User interface changes

Introduced terminology

API changes

New constants. We need to consider what happens if contrib/custom classes that implement EntityPublishedInterface have already defined these constants.

Data model changes

Release notes snippet

Feature request
Status

Active

Version

11.0 🔥

Component

entity system

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024