You are here

public function CountryList::getIso2 in Country, State and City Fields 8

File

src/Entity/CountryList.php, line 99

Class

CountryList
Defines the countrylist entity.

Namespace

Drupal\country_state_city\Entity

Code

public function getIso2() {
  return $this
    ->get('iso2')->value;
}