You are here

public function VideoEmbedField::isEmpty in Video Embed Field 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldType/VideoEmbedField.php \Drupal\video_embed_field\Plugin\Field\FieldType\VideoEmbedField::isEmpty()

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/VideoEmbedField.php, line 76

Class

VideoEmbedField
Plugin implementation of the video_embed_field field type.

Namespace

Drupal\video_embed_field\Plugin\Field\FieldType

Code

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