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\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}