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