Comment::setOwnerId

public Comment::setOwnerId($uid)

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

core/modules/comment/src/Entity/Comment.php, line 543

Class

Comment
Defines the comment entity class.

Namespace

Drupal\comment\Entity

Code

public function setOwnerId($uid) {
  $this->set('uid', $uid);
  return $this;
}
doc_Drupal
2016-10-29 08:50:25
Comments
Leave a Comment

Please login to continue.