Node::getRevisionUser

public Node::getRevisionUser()

Gets the entity revision author.

Return value

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

Overrides RevisionLogInterface::getRevisionUser

File

core/modules/node/src/Entity/Node.php, line 315

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function getRevisionUser() {
  return $this->get('revision_uid')->entity;
}
doc_Drupal
2016-10-29 09:30:21
Comments
Leave a Comment

Please login to continue.