You are here

public function GeolocationGeometryBase::isEmpty in Geolocation Field 8.3

Determines whether the data structure is empty.

Return value

bool TRUE if the data structure is empty, FALSE otherwise.

Overrides Map::isEmpty

File

modules/geolocation_geometry/src/Plugin/Field/FieldType/GeolocationGeometryBase.php, line 240

Class

GeolocationGeometryBase
Class Geolocation Geometry Base.

Namespace

Drupal\geolocation_geometry\Plugin\Field\FieldType

Code

public function isEmpty() {
  return empty($this
    ->get('wkt')
    ->getValue()) && empty($this
    ->get('geojson')
    ->getValue());
}