Node::$in_preview
Same name in other branches
- 8.9.x core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::in_preview
- 10 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::in_preview
- 11.x core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::in_preview
Whether the node is being previewed or not.
The variable is set to public as it will give a considerable performance improvement. See https://www.drupal.org/node/2498919.
TRUE if the node is being previewed and NULL if it is not.
Type: true|null
File
-
core/
modules/ node/ src/ Entity/ Node.php, line 97
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\EntityCode
public $in_preview = NULL;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.