public function PopupOnLoad::getOwner in Popup On Load 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ PopupOnLoad.php, line 103
Class
- PopupOnLoad
- Defines the Popup On Load entity.
Namespace
Drupal\popup_onload\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}