You are here

public function Accepted::setOwnerId in Legal 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Accepted.php \Drupal\legal\Entity\Accepted::setOwnerId()

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/Accepted.php, line 71

Class

Accepted
Defines the Legal Terms & Conditions accepted entity.

Namespace

Drupal\legal\Entity

Code

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