You are here

public function ScheduledUpdate::getOwner in Scheduled Updates 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/ScheduledUpdate.php, line 101
Contains \Drupal\scheduled_updates\Entity\ScheduledUpdate.

Class

ScheduledUpdate
Defines the Scheduled update entity.

Namespace

Drupal\scheduled_updates\Entity

Code

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