public function DownloadLink::isEmpty in Download 8.2
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/ DownloadLink.php, line 80
Class
- DownloadLink
- Provides field type DownloadLink
Namespace
Drupal\download\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('download_fields')
->getValue();
return $value === null || $value === '';
}