public function CountryList::getOwner in Country, State and City Fields 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- src/
Entity/ CountryList.php, line 129
Class
- CountryList
- Defines the countrylist entity.
Namespace
Drupal\country_state_city\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}