public function InstagramAccount::setOwner in Instagram Feeds 8
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- src/
Entity/ InstagramAccount.php, line 380
Class
- InstagramAccount
- Defines the instagram_account entity class.
Namespace
Drupal\instagram_feeds\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}