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\EntityCode
public function getIso2() {
return $this
->get('iso2')->value;
}