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 86

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

1
public $in_preview = NULL;
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.