You are here

public function TimeZoneItem::isEmpty in Time Zone Field 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/TimeZoneItem.php, line 51

Class

TimeZoneItem
Plugin implementation of the time zone field type.

Namespace

Drupal\tzfield\Plugin\Field\FieldType

Code

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