summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/Render
diff options
context:
space:
mode:
authorLee Rowlands2017-06-24 07:50:06 (GMT)
committerLee Rowlands2017-06-24 07:50:06 (GMT)
commit2e9f82158790092dd38fe33007262d00f3389937 (patch)
treec8cded1efd273a82fbde6bbeafe4520f41a71585 /core/lib/Drupal/Core/Render
parent04573c06329e642ef5770d404afb983890009da6 (diff)
Issue #2594553 by gambry, arshadcn, Sagar Ramgade, Yogesh Pawar, garnett2125, larowlan, lauriii: Add #maxlength to textarea in Form API
Diffstat (limited to 'core/lib/Drupal/Core/Render')
-rw-r--r--core/lib/Drupal/Core/Render/Element/Textarea.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/lib/Drupal/Core/Render/Element/Textarea.php b/core/lib/Drupal/Core/Render/Element/Textarea.php
index 340bc11..aa809b2 100644
--- a/core/lib/Drupal/Core/Render/Element/Textarea.php
+++ b/core/lib/Drupal/Core/Render/Element/Textarea.php
@@ -12,6 +12,7 @@ use Drupal\Core\Form\FormStateInterface;
* - #cols: Number of columns in the text box.
* - #resizable: Controls whether the text area is resizable. Allowed values
* are "none", "vertical", "horizontal", or "both" (defaults to "vertical").
+ * - #maxlength: The maximum amount of characters to accept as input.
*
* Usage example:
* @code