Node::setRevisionUserId

public Node::setRevisionUserId($user_id)

Sets the entity revision author by ID.

Parameters

int $user_id: The user ID of the revision author.

Return value

$this

Overrides RevisionLogInterface::setRevisionUserId

File

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

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function setRevisionUserId($user_id) {
  $this->set('revision_uid', $user_id);
  return $this;
}
doc_Drupal
2016-10-29 09:30:25
Comments
Leave a Comment

Please login to continue.