You are here

public function YamlForm::getOwner in YAML Form 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/YamlForm.php, line 268

Class

YamlForm
Defines the form entity.

Namespace

Drupal\yamlform\Entity

Code

public function getOwner() {
  return $this->uid ? User::load($this->uid) : NULL;
}