Commit 954ca572 authored by nicola85's avatar nicola85

Add “Only check availability” option to the BEE webform element

parent 0d2abd62
......@@ -27,6 +27,7 @@ class WebformBeeReservationForm extends WebformCompositeBase {
public function getDefaultProperties() {
return [
'content_types' => [],
'only_check_availability' => FALSE,
] + parent::getDefaultProperties();
}
......@@ -55,6 +56,11 @@ class WebformBeeReservationForm extends WebformCompositeBase {
'#element_validate' => [[get_class($this), 'validateContentTypes']],
];
$form['composite']['only_check_availability'] = [
'#type' => 'checkbox',
'#title' => $this->t('Only check availability'),
];
return $form;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment