Problem/Motivation

Follow up to #3538277: Add NodePreview enum and replace usage of DRUPAL_DISABLED, DRUPAL_OPTIONAL and DRUPAL_REQUIRED

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
\Drupal\node\Entity\NodeType::setPreviewMode

Steps to reproduce

Proposed resolution

Uncomment parameter from ::getPreviewMode
Uncomment type declaration from ::setPreviewMode (interface and class)

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

Comments

mstrelan created an issue. See original summary.

mstrelan’s picture

Issue summary: View changes

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

quietone’s picture

Status: Postponed » Closed (duplicate)
Related issues: +#3571623: Remove deprecated code from the Node module

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.