You are here

public function NifItem::isEmpty in Field NIF 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/NifItem.php, line 123

Class

NifItem
Plugin implementation of the 'nif' field type.

Namespace

Drupal\field_nif\Plugin\Field\FieldType

Code

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