summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/Entity/Node.php
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-05-04 14:11:49 +0100
committerNathaniel Catchpole2016-05-04 14:11:49 +0100
commit2be39c73876f9d22f8cea40777d082e3fba4cbd4 (patch)
tree1e72513c0d96d2d02764964af39cdef47b4c22bc /core/modules/node/src/Entity/Node.php
parenta39876b9f4e24465c21ed79bd369f39c2c7b4853 (diff)
Issue #2718583 by alexpott: Remove deprecated usages of Node::setRevisionAuthorId() and Node::getRevisionAuthor()
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 0fb327d..51794be 100644
--- a/core/modules/node/src/Entity/Node.php
+++ b/core/modules/node/src/Entity/Node.php
@@ -102,8 +102,8 @@ class Node extends ContentEntityBase implements NodeInterface {
// If no revision author has been set explicitly, make the node owner the
// revision author.
- if (!$this->getRevisionAuthor()) {
- $this->setRevisionAuthorId($this->getOwnerId());
+ if (!$this->getRevisionUser()) {
+ $this->setRevisionUserId($this->getOwnerId());
}
}