You are here

public function StateList::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/StateList.php, line 106

Class

StateList
Defines the statelist entity.

Namespace

Drupal\country_state_city\Entity

Code

public function getOwner() {
  return $this
    ->get('user_id')->entity;
}