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