public function ListItemBase::isEmpty in Drupal 10
Same name and namespace in other branches
- 8 core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::isEmpty()
- 9 core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::isEmpty()
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- core/
modules/ options/ src/ Plugin/ Field/ FieldType/ ListItemBase.php, line 74
Class
- ListItemBase
- Plugin base class inherited by the options field types.
Namespace
Drupal\options\Plugin\Field\FieldTypeCode
public function isEmpty() {
return empty($this->value) && (string) $this->value !== '0';
}