public function FlaggingCollection::setOwner in Flag Lists 8
Same name and namespace in other branches
- 4.0.x src/Entity/FlaggingCollection.php \Drupal\flag_lists\Entity\FlaggingCollection::setOwner()
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/ FlaggingCollection.php, line 268
Class
- FlaggingCollection
- Defines the Flagging collection entity.
Namespace
Drupal\flag_lists\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('user_id', $account
->id());
return $this;
}