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

1
2
3
public function getRevisionUser() {
  return $this->get('revision_uid')->entity;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.