By garphy on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.3.x
Introduced in version:
8.3.0
Issue links:
Description:
Node-related constants were are defined in node.module as global. These constants have been deprecated and will be removed in Drupal 9. They are now defined in \Drupal\node\NodeInterface.
Here is the list of each old constant with its related new constant. Take note that some were slightly renamed in the process.
| node.module constants (deprecated) | NodeInterface |
|---|---|
| NODE_NOT_PUBLISHED | NodeInterface::NOT_PUBLISHED |
| NODE_PUBLISHED | NodeInterface::PUBLISHED |
| NODE_NOT_PROMOTED | NodeInterface::NOT_PROMOTED |
| NODE_PROMOTED | NodeInterface::PROMOTED |
| NODE_NOT_STICKY | NodeInterface::NOT_STICKY |
| NODE_STICKY | NodeInterface::STICKY |
Any contributed module or theme which previously used one of these constants needs updating before Drupal 9 to match this change.
Impacts:
Module developers
Themers