You are here

public function IsbnItem::isEmpty in ISBN 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/IsbnItem.php, line 42

Class

IsbnItem
Plugin implementation of the 'isbn' field type.

Namespace

Drupal\isbn\Plugin\Field\FieldType

Code

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