public function SoundCloudItem::isEmpty in SoundCloud 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/ SoundCloudItem.php, line 65
Class
- SoundCloudItem
- Plugin implementation of the 'soundcloud' field type.
Namespace
Drupal\soundcloudfield\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('url')
->getValue();
return $value === NULL || $value === '';
}