NodeInterface::setRevisionAuthorId

public NodeInterface::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.

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/NodeInterface.php, line 162

Class

NodeInterface
Provides an interface defining a node entity.

Namespace

Drupal\node

Code

public function setRevisionAuthorId($uid);
doc_Drupal
2016-10-29 09:30:57
Comments
Leave a Comment

Please login to continue.