You are here

public function TwitterEmbedItem::isEmpty in Twitter Embed 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/TwitterEmbedItem.php, line 98

Class

TwitterEmbedItem
Plugin implementation of the 'twitter_embed_field' field type.

Namespace

Drupal\twitter_embed\Plugin\Field\FieldType

Code

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