You are here

public function YamlForm::setOwnerId in YAML Form 8

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/YamlForm.php, line 295

Class

YamlForm
Defines the form entity.

Namespace

Drupal\yamlform\Entity

Code

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