public function Node::setRevisionAuthorId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::setRevisionAuthorId()
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
1 call to Node::setRevisionAuthorId()
- Node::preSave in core/
modules/ node/ src/ Entity/ Node.php - Acts on an entity before the presave hook is invoked.
File
- core/
modules/ node/ src/ Entity/ Node.php, line 316 - Contains \Drupal\node\Entity\Node.
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\EntityCode
public function setRevisionAuthorId($uid) {
$this
->set('revision_uid', $uid);
return $this;
}