public function VideoEmbedField::isEmpty in Video Embed Field 8
Same name and namespace in other branches
- 8.2 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\FieldTypeCode
public function isEmpty() {
$value = $this
->get('value')
->getValue();
return empty($value);
}