public static function OfficeHoursDatelist::processOfficeHoursSlot in Office Hours 8
Process the office_hours_select element before showing it.
Parameters
$element:
\Drupal\Core\Form\FormStateInterface $form_state:
$complete_form:
Return value
array The screen element.
File
- src/
Element/ OfficeHoursDatelist.php, line 102
Class
- OfficeHoursDatelist
- Provides a one-line text field form element.
Namespace
Drupal\office_hours\ElementCode
public static function processOfficeHoursSlot(&$element, FormStateInterface $form_state, &$complete_form) {
$element['hour']['#options'] = $element['#hour_options'];
return $element;
}