You are here

public function Flipbook::getOwner in 3D Flipbook 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Flipbook.php, line 181

Class

Flipbook
Defines the Flipbook entity.

Namespace

Drupal\flipbook\Entity

Code

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