You are here

public function Node::getRevisionAuthor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::getRevisionAuthor()

Gets the node revision author.

Return value

\Drupal\user\UserInterface The user entity for the revision author.

Overrides NodeInterface::getRevisionAuthor

1 call to Node::getRevisionAuthor()
Node::preSave in core/modules/node/src/Entity/Node.php
Acts on an entity before the presave hook is invoked.

File

core/modules/node/src/Entity/Node.php, line 309
Contains \Drupal\node\Entity\Node.

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function getRevisionAuthor() {
  return $this
    ->get('revision_uid')->entity;
}