You are here

public function SkypeItem::isEmpty in Skype 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/SkypeItem.php, line 53

Class

SkypeItem
Plugin implementation of the 'skype' field type.

Namespace

Drupal\skype\Plugin\Field\FieldType

Code

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