Unverified Commit dee0eb28 authored by alexpott's avatar alexpott

Issue #2944552 by mpdonadio, bhanuprakashnani, liquidcms, Sophie.SK,...

Issue #2944552 by mpdonadio, bhanuprakashnani, liquidcms, Sophie.SK, tacituseu: Documentation for #default_value in Date form element is incorrect
parent d7183eea
......@@ -9,16 +9,15 @@
* Provides a form element for date selection.
*
* Properties:
* - #default_value: An array with the keys: 'year', 'month', and 'day'.
* Defaults to the current date if no value is supplied.
* - #default_value: A string for the default date in 'Y-m-d' format.
* - #size: The size of the input element in characters.
*
* @code
* $form['expiration'] = array(
* $form['expiration'] = [
* '#type' => 'date',
* '#title' => $this->t('Content expiration'),
* '#default_value' => array('year' => 2020, 'month' => 2, 'day' => 15,)
* );
* '#default_value' => 2020-02-05',
* ];
* @endcode
*
* @FormElement("date")
......
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