You are here

public function SignatureField::isEmpty in Signature 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/SignatureField.php, line 40

Class

SignatureField
Plugin implementation of the 'field_signature' field type.

Namespace

Drupal\signature_field\Plugin\Field\FieldType

Code

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