public function FlaggingCollection::getOwnerId in Flag Lists 8
Same name and namespace in other branches
- 4.0.x src/Entity/FlaggingCollection.php \Drupal\flag_lists\Entity\FlaggingCollection::getOwnerId()
Returns the entity owner's user ID.
Return value
int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.
Overrides EntityOwnerInterface::getOwnerId
1 call to FlaggingCollection::getOwnerId()
- FlaggingCollection::preSave in src/
Entity/ FlaggingCollection.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ FlaggingCollection.php, line 225
Class
- FlaggingCollection
- Defines the Flagging collection entity.
Namespace
Drupal\flag_lists\EntityCode
public function getOwnerId() {
return $this
->get('user_id')->target_id;
}