Node::getRevisionAuthor

public Node::getRevisionAuthor()

Gets the node revision author.

Return value

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

Overrides NodeInterface::getRevisionAuthor

Deprecated

in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser() instead.

File

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

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function getRevisionAuthor() {
  return $this->getRevisionUser();
}
doc_Drupal
2016-10-29 09:30:20
Comments
Leave a Comment

Please login to continue.