public function CountryType::isEmpty in Country, State and City Fields 8
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- src/
Plugin/ Field/ FieldType/ CountryType.php, line 105
Class
- CountryType
- Plugin implementation of the 'country_type' field type.
Namespace
Drupal\country_state_city\Plugin\Field\FieldTypeCode
public function isEmpty() {
$country = empty($this
->get('country')
->getValue());
return $country;
}