You are here

public function SitewideAlert::getOwner in Sitewide Alert 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/SitewideAlert.php, line 177

Class

SitewideAlert
Defines the Sitewide Alert entity.

Namespace

Drupal\sitewide_alert\Entity

Code

public function getOwner() {
  return $this
    ->get('user_id')->entity;
}