public function CountryItem::isEmpty in Country 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/ CountryItem.php, line 59
Class
- CountryItem
- Plugin implementation of the 'country' field type.
Namespace
Drupal\country\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('value')
->getValue();
return $value === NULL || $value === '';
}