You are here

public function OpignoAnswer::getOwner in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Entity/OpignoAnswer.php \Drupal\opigno_module\Entity\OpignoAnswer::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/OpignoAnswer.php, line 112

Class

OpignoAnswer
Defines the Answer entity.

Namespace

Drupal\opigno_module\Entity

Code

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