You are here

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\FieldType

Code

public function isEmpty() {
  $value = $this
    ->get('coords')
    ->getValue();
  return $value === NULL || $value === '';
}