projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
includes
/
form.inc
diff --git
a/web/core/includes/form.inc
b/web/core/includes/form.inc
index 05f2a9e1fcea5dcdc81c063ee47100c826505b9a..d99dca282a2177d47f1aac7c0826de2ccd312de8 100644
(file)
--- a/
web/core/includes/form.inc
+++ b/
web/core/includes/form.inc
@@
-370,12
+370,13
@@
function template_preprocess_form(&$variables) {
* @param array $variables
* An associative array containing:
* - element: An associative array containing the properties of the element.
* @param array $variables
* An associative array containing:
* - element: An associative array containing the properties of the element.
- * Properties used: #title, #value, #description, #rows, #cols,
- * #placeholder, #required, #attributes, #resizable
+ * Properties used: #title, #value, #description, #rows, #cols,
#maxlength,
+ * #placeholder, #required, #attributes, #resizable
.
*/
function template_preprocess_textarea(&$variables) {
$element = $variables['element'];
*/
function template_preprocess_textarea(&$variables) {
$element = $variables['element'];
- Element::setAttributes($element, ['id', 'name', 'rows', 'cols', 'placeholder']);
+ $attributes = ['id', 'name', 'rows', 'cols', 'maxlength', 'placeholder'];
+ Element::setAttributes($element, $attributes);
RenderElement::setAttributes($element, ['form-textarea']);
$variables['wrapper_attributes'] = new Attribute();
$variables['attributes'] = new Attribute($element['#attributes']);
RenderElement::setAttributes($element, ['form-textarea']);
$variables['wrapper_attributes'] = new Attribute();
$variables['attributes'] = new Attribute($element['#attributes']);
@@
-786,8
+787,8
@@
function batch_set($batch_definition) {
* is omitted and no redirect response was returned by the 'finished'
* callback. Any query arguments will be automatically persisted.
* @param \Drupal\Core\Url $url
* is omitted and no redirect response was returned by the 'finished'
* callback. Any query arguments will be automatically persisted.
* @param \Drupal\Core\Url $url
- * (optional
- should only be used for separate scripts like update.php)
- *
URL of the batch processing page
.
+ * (optional
) URL of the batch processing page. Should only be used for
+ *
separate scripts like update.php
.
* @param $redirect_callback
* (optional) Specify a function to be called to redirect to the progressive
* processing page.
* @param $redirect_callback
* (optional) Specify a function to be called to redirect to the progressive
* processing page.