From 85a227f79459afe83bf4e66a93a7438c87ef7b68 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Thu, 22 Sep 2016 17:28:08 +0100 Subject: [PATCH] Issue #2797721 by jp.stacey: Custom form handler's submitForm not called when using example in documentation --- core/core.api.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/core.api.php b/core/core.api.php index 7b90ae21f7bb..639e55dd9780 100644 --- a/core/core.api.php +++ b/core/core.api.php @@ -1692,7 +1692,11 @@ * // Create a $form API array. * $form['phone_number'] = array( * '#type' => 'tel', - * '#title' => $this->t('Your phone number') + * '#title' => $this->t('Your phone number'), + * ); + * $form['save'] = array( + * '#type' => 'submit', + * '#value' => $this->t('Save'), * ); * return $form; * } -- GitLab