You are here

public function Relation::setOwnerId in Relation 8.2

Same name and namespace in other branches
  1. 8 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 144

Class

Relation
Defines relation entity.

Namespace

Drupal\relation\Entity

Code

public function setOwnerId($uid) {
  $this
    ->set('uid', $uid);
  return $this;
}