function NodeTypeInterface::setPreviewMode
Same name in other branches
- 9 core/modules/node/src/NodeTypeInterface.php \Drupal\node\NodeTypeInterface::setPreviewMode()
- 8.9.x core/modules/node/src/NodeTypeInterface.php \Drupal\node\NodeTypeInterface::setPreviewMode()
- 11.x core/modules/node/src/NodeTypeInterface.php \Drupal\node\NodeTypeInterface::setPreviewMode()
Sets the preview mode.
Parameters
int $preview_mode: DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED.
1 method overrides NodeTypeInterface::setPreviewMode()
- NodeType::setPreviewMode in core/
modules/ node/ src/ Entity/ NodeType.php - Sets the preview mode.
File
-
core/
modules/ node/ src/ NodeTypeInterface.php, line 59
Class
- NodeTypeInterface
- Provides an interface defining a node type entity.
Namespace
Drupal\nodeCode
public function setPreviewMode($preview_mode);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.