You are here

public function AddressItem::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/AddressItem.php, line 332

Class

AddressItem
Plugin implementation of the 'address' field type.

Namespace

Drupal\address\Plugin\Field\FieldType

Code

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