You are here

public function FeedbackMessage::getOwner in Feedback 3.x

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/FeedbackMessage.php, line 114

Class

FeedbackMessage
Defines the Feedback message entity.

Namespace

Drupal\feedback\Entity

Code

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