You are here

public function KeyValueFieldTypeTrait::isEmpty in Key value field 8

File

src/Plugin/Field/FieldType/KeyValueFieldTypeTrait.php, line 94

Class

KeyValueFieldTypeTrait
Common traits for key value field types which inherit different field types.

Namespace

Drupal\key_value_field\Plugin\Field\FieldType

Code

public function isEmpty() {
  $key = $this
    ->get('key')
    ->getValue();
  return ($key === NULL || $key === '') && parent::isEmpty();
}