public function FlagListItem::setOwnerId in Flag Lists 4.0.x
Same name and namespace in other branches
- 8 src/Entity/FlagListItem.php \Drupal\flag_lists\Entity\FlagListItem::setOwnerId()
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- src/
Entity/ FlagListItem.php, line 123
Class
- FlagListItem
- Defines the Flag list item entity.
Namespace
Drupal\flag_lists\EntityCode
public function setOwnerId($uid) {
$this
->set('user_id', $uid);
return $this;
}