You are here

public function Transaction::getOwner in Transaction 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/Transaction.php, line 258

Class

Transaction
Provides the transaction content entity.

Namespace

Drupal\transaction\Entity

Code

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