public static Datelist::valueCallback(&$element, $input, FormStateInterface $form_state)
Validates the date type to adjust 12 hour time and prevent invalid dates. If the date is valid, the date is set in the form.
Overrides FormElement::valueCallback
File
core/lib/Drupal/Core/Datetime/Element/Datelist.php, line 46
Class
Datelist Provides a datelist element.
Namespace
Drupal\Core\Datetime\Element
Code
public static function valueCallback(&$element, $input, FormStateInterface $f