public function IntervalItem::isEmpty in Interval 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/ IntervalItem.php, line 91
Class
- IntervalItem
- Provides a data type plugin for an interval item.
Namespace
Drupal\interval\Plugin\Field\FieldTypeCode
public function isEmpty() {
return empty($this
->getValue()['interval']);
}