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