You are here

public function RecentlyRead::getOwner in Recently Read 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/RecentlyRead.php, line 127

Class

RecentlyRead
Defines the Recently read entity.

Namespace

Drupal\recently_read\Entity

Code

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