public function OfficeHoursItem::isEmpty in Office Hours 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/ OfficeHoursItem.php, line 234
Class
- OfficeHoursItem
- Plugin implementation of the 'office_hours' field type.
Namespace
Drupal\office_hours\Plugin\Field\FieldTypeCode
public function isEmpty() {
return OfficeHoursDatetime::isEmpty($this
->getValue());
}