You are here

public function LibraryTransaction::getOwner in Library 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/LibraryTransaction.php, line 83

Class

LibraryTransaction
Defines the Library transaction entity.

Namespace

Drupal\library\Entity

Code

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