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
1 2 3 4 | public function setRevisionUserId( $user_id ) { $this ->set( 'revision_uid' , $user_id ); return $this ; } |
Please login to continue.