- Issue created by @acbramley
Follow-up to 📌 Each class using DRUPAL_* constants from system.module should define its own constants Needs work
We will have an enum for NodePreview states which can be used in NodeTypeInterface::get/setPreviewMode
Not sure the best way to do this while maintaining BC, most likely:
- Add deprecated $returnAsInt param to getPreviewMode and update return type to int|NodePreview
- Update usages in core of getPreviewMode to expect NodePreview enum
- Allow int|NodePreview in setPreviewMode
- Update usages in core of setPreviewMode to use the NodePreview enum
Do it
NodeTypeInterface::getPreviewMode
and NodeTypeInterface::setPreviewMode
now interact with the NodePreview enum
Postponed
11.0 🔥
node system