public function Webform::getOwner in Webform 8.5
Same name and namespace in other branches
- 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\EntityCode
public function getOwner() {
return $this->uid ? User::load($this->uid) : NULL;
}