[12.x] Remove commented parameters and type declations in NodeTypeInterface

Created on 4 August 2025, 11 days ago

Problem/Motivation

Follow up to 📌 Introduce and make use of NodePreview enum, to replace node related usage of DRUPAL_DISABLED, DRUPAL_OPTIONAL and DRUPAL_REQUIRED constants Active

As per Adding arguments to interface methods we have added commented out parameters and type declarations to the following methods

\Drupal\node\NodeTypeInterface::getPreviewMode
\Drupal\node\NodeTypeInterface::setPreviewMode

Steps to reproduce

Proposed resolution

Uncomment parameter from ::getPreviewMode
Uncomment type declaration from ::setPreviewMode

Note that support for deprecated use of ints will remain throughout Drupal 12, and will be removed in Drupal 13.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Postponed

Version

11.0 🔥

Component

node system

Created by

🇦🇺Australia mstrelan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024