You are here

public function Node::getRevisionAuthor in Drupal 8

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 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser() instead.

See also

https://www.drupal.org/node/3069750

File

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

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function getRevisionAuthor() {
  @trigger_error(__NAMESPACE__ . '\\Node::getRevisionAuthor is deprecated in drupal:8.2.0 and is removed from drupal:9.0.0. Use \\Drupal\\Core\\Entity\\RevisionLogInterface::getRevisionUser() instead. See https://www.drupal.org/node/3069750', E_USER_DEPRECATED);
  return $this
    ->getRevisionUser();
}