public function NodeInterface::setRevisionAuthorId in Drupal 8
Sets the node revision author.
Parameters
int $uid: The user ID of the revision author.
Return value
$this The called node entity.
Deprecated
in drupal:8.2.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId() instead.
See also
https://www.drupal.org/node/3069750
1 method overrides NodeInterface::setRevisionAuthorId()
- Node::setRevisionAuthorId in core/
modules/ node/ src/ Entity/ Node.php - Sets the node revision author.
File
- core/
modules/ node/ src/ NodeInterface.php, line 176
Class
- NodeInterface
- Provides an interface defining a node entity.
Namespace
Drupal\nodeCode
public function setRevisionAuthorId($uid);