Node::getRevisionUserId

public Node::getRevisionUserId()

Gets the entity revision author ID.

Return value

int The user ID.

Overrides RevisionLogInterface::getRevisionUserId

File

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

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

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

Please login to continue.