public function Node::setOwnerId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::setOwnerId()
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- core/
modules/ node/ src/ Entity/ Node.php, line 278 - Contains \Drupal\node\Entity\Node.
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\EntityCode
public function setOwnerId($uid) {
$this
->set('uid', $uid);
return $this;
}