Unverified Commit dee0eb28 authored by Alex Pott's avatar Alex Pott
Browse files

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
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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")