From 683dda01d7bbc839af2e72a1dcbd71cde78298db Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Sun, 22 Sep 2019 00:13:04 +0100 Subject: [PATCH] Issue #3078633 by tim-diels, cindytwilliams: Documentation fix date render element --- core/lib/Drupal/Core/Render/Element/Date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/Render/Element/Date.php b/core/lib/Drupal/Core/Render/Element/Date.php index df56dd81f0a3..dfaa3f076ae4 100644 --- a/core/lib/Drupal/Core/Render/Element/Date.php +++ b/core/lib/Drupal/Core/Render/Element/Date.php @@ -16,7 +16,7 @@ use Drupal\Core\Render\Element; * $form['expiration'] = [ * '#type' => 'date', * '#title' => $this->t('Content expiration'), - * '#default_value' => 2020-02-05', + * '#default_value' => '2020-02-05', * ]; * @endcode *