public function RealEstate::getOwnerId in Styled Google Map 8.2
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
File
- modules/
demo/ src/ Entity/ RealEstate.php, line 164
Class
- RealEstate
- Defines the Real estate entity.
Namespace
Drupal\styled_google_map_demo\EntityCode
public function getOwnerId() {
return $this
->get('user_id')->target_id;
}