You are here

public function InstagramAccount::getOwner in Instagram Feeds 8

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/InstagramAccount.php, line 358

Class

InstagramAccount
Defines the instagram_account entity class.

Namespace

Drupal\instagram_feeds\Entity

Code

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