You are here

public function FlippingBook::getOwner in Flipping Book 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/FlippingBook.php, line 134

Class

FlippingBook
Defines the Flipping Book entity.

Namespace

Drupal\flipping_book\Entity

Code

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