You are here

public function Webform::setOwnerId in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::setOwnerId()

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/Webform.php, line 544

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function setOwnerId($uid) {
  $this->uid = $uid ? $uid : NULL;
  return $this;
}