From b843b4ae485adffc1e86d7c352e598fbfcae1851 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Tue, 14 Jul 2015 08:33:43 +0100 Subject: [PATCH] Issue #2525068 by daffie, googletorp: Document the class variable Node::in_preview as will stay public --- core/modules/node/src/Entity/Node.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php index afa31e3c797..0588ab09744 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;