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; }
Please login to continue.