summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/Entity/Node.php
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-02-09 11:14:54 +0000
committerNathaniel Catchpole2017-02-09 11:14:54 +0000
commit8dbd209ef36d37c40f113a727ff6f4ffc2f4cd2e (patch)
tree5cc9b79f55df6c2631fe923437ad449eb67557d8 /core/modules/node/src/Entity/Node.php
parented9c8e096c696f9191d49142e3157003f910b9af (diff)
Issue #2313095 by claudiu.cristea, l0ke, umarzaffer, mrjmd, dawehner, alexpott, catch: Move node constants to NodeInterface
Diffstat (limited to 'core/modules/node/src/Entity/Node.php')
-rw-r--r--core/modules/node/src/Entity/Node.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php
index bb0e36a..0edb58f 100644
--- a/core/modules/node/src/Entity/Node.php
+++ b/core/modules/node/src/Entity/Node.php
@@ -229,7 +229,7 @@ class Node extends ContentEntityBase implements NodeInterface {
* {@inheritdoc}
*/
public function setPromoted($promoted) {
- $this->set('promote', $promoted ? NODE_PROMOTED : NODE_NOT_PROMOTED);
+ $this->set('promote', $promoted ? NodeInterface::PROMOTED : NodeInterface::NOT_PROMOTED);
return $this;
}
@@ -244,7 +244,7 @@ class Node extends ContentEntityBase implements NodeInterface {
* {@inheritdoc}
*/
public function setSticky($sticky) {
- $this->set('sticky', $sticky ? NODE_STICKY : NODE_NOT_STICKY);
+ $this->set('sticky', $sticky ? NodeInterface::STICKY : NodeInterface::NOT_STICKY);
return $this;
}