You are here

public function ZoneItem::isEmpty in Address 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/ZoneItem.php, line 74

Class

ZoneItem
Plugin implementation of the 'zone' field type.

Namespace

Drupal\address\Plugin\Field\FieldType

Code

public function isEmpty() {
  return $this->value === NULL || !$this->value instanceof Zone;
}