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.
Comments
Comment #2
mstrelan commentedComment #4
quietone commentedThis was fixed in #3571623: Remove deprecated code from the Node module