By acbramley on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.3.x
Introduced in version:
11.3.0
Issue links:
Description:
NodeTypeInterface::getPreviewMode and NodeTypeInterface::setPreviewMode now interact with the \Drupal\node\NodePreviewMode enum instead of integer values.
A new deprecated parameter $returnAsInt has been added to getPreviewMode to maintain backwards compatibility. Passing FALSE to this will return the NodePreviewMode enum instead.
Passing an integer to setPreviewMode is now deprecated, use the NodePreviewMode enum instead.
Impacts:
Module developers