Node::setRevisionAuthorId

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

public function setRevisionAuthorId($uid) {
  $this->setRevisionUserId($uid);
  return $this;
}
doc_Drupal
2016-10-29 09:30:25
Comments
Leave a Comment

Please login to continue.