You are here

public function Webform::getOwner in Webform 8.5

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

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Webform.php, line 517

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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