You are here

public function Node::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.

Overrides NodeInterface::setRevisionAuthorId

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

File

core/modules/node/src/Entity/Node.php, line 269

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function setRevisionAuthorId($uid) {
  @trigger_error(__NAMESPACE__ . '\\Node::setRevisionAuthorId is deprecated in drupal:8.2.0 and is removed from drupal:9.0.0. Use \\Drupal\\Core\\Entity\\RevisionLogInterface::setRevisionUserId() instead. See https://www.drupal.org/node/3069750', E_USER_DEPRECATED);
  return $this
    ->setRevisionUserId($uid);
}