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