summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/Entity/Node.php
diff options
context:
space:
mode:
authorAlex Pott2015-07-14 08:33:43 +0100
committerAlex Pott2015-07-14 08:33:43 +0100
commitb843b4ae485adffc1e86d7c352e598fbfcae1851 (patch)
treebde6ecb6a218f83c8da2e1eae5cb0ec9607c1fa9 /core/modules/node/src/Entity/Node.php
parent23fde8da454595ed9933b02a3ccf817afc790021 (diff)
Issue #2525068 by daffie, googletorp: Document the class variable Node::in_preview as will stay public
Diffstat (limited to 'core/modules/node/src/Entity/Node.php')
-rw-r--r--core/modules/node/src/Entity/Node.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php
index afa31e3..0588ab0 100644
--- a/core/modules/node/src/Entity/Node.php
+++ b/core/modules/node/src/Entity/Node.php
@@ -77,7 +77,11 @@ class Node extends ContentEntityBase implements NodeInterface {
/**
* 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.
+ *
* @var true|null
+ * TRUE if the node is being previewed and NULL if it is not.
*/
public $in_preview = NULL;