public Node::setRevisionAuthorId($uid)
Sets the node revision author.
Parameters
int $uid: The user ID of the revision author.
Return value
\Drupal\node\NodeInterface The called node entity.
Overrides NodeInterface::setRevisionAuthorId
Deprecated
in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId() instead.
File
- core/modules/node/src/Entity/Node.php, line 322
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\Entity
Code
1 2 3 4 | public function setRevisionAuthorId( $uid ) { $this ->setRevisionUserId( $uid ); return $this ; } |
Please login to continue.