Node::setRevisionUser

public Node::setRevisionUser(UserInterface $user)

Sets the entity revision author.

Parameters

\Drupal\user\UserInterface $account: The user account of the revision author.

Return value

$this

Overrides RevisionLogInterface::setRevisionUser

File

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

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

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

Please login to continue.