You are here

public function TweetEntity::setOwnerId in Tweet Feed 8.3

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

Sets the entity owner's user ID.

Parameters

int $uid: The owner user id.

Return value

$this

Overrides EntityOwnerInterface::setOwnerId

File

src/Entity/TweetEntity.php, line 108

Class

TweetEntity
Defines the Tweet Feed Tweet entity.

Namespace

Drupal\tweet_feed\Entity

Code

public function setOwnerId($uid) {
  $this
    ->set('user_id', $uid);
  return $this;
}