public function HMSFieldItem::isEmpty in HMS 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/ HMSFieldItem.php, line 61 - Contains \Drupal\hms_field\Plugin\Field\FieldType\HMSFieldItem.
Class
- HMSFieldItem
- Plugin implementation of the 'hms' field type.
Namespace
Drupal\hms_field\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('value')
->getValue();
return $value === NULL || $value === '';
}