You are here

public function TweetEntity::getOwner in Tweet Feed 4.x

Same name and namespace in other branches
  1. 8.3 src/Entity/TweetEntity.php \Drupal\tweet_feed\Entity\TweetEntity::getOwner()

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/TweetEntity.php, line 82

Class

TweetEntity
Defines the Tweet Feed Tweet entity.

Namespace

Drupal\tweet_feed\Entity

Code

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