public function BatCalendarUnitReference::isEmpty in Booking and Availability Management Tools for Drupal 8
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- modules/
bat_calendar_reference/ src/ Plugin/ Field/ FieldType/ BatCalendarUnitReference.php, line 48 - Contains \Drupal\bat_calendar_reference\Plugin\Field\FieldType\BatCalendarUnitReference.
Class
- BatCalendarUnitReference
- Plugin annotation @FieldType( id = "bat_calendar_unit_reference", label = @Translation("BAT Calendar Unit Reference"), description = @Translation("Display unit events information embedded from other fieldable content."), default_widget =…
Namespace
Drupal\bat_calendar_reference\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('unit_id')
->getValue();
return $value === NULL || $value === '';
}