Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
use Drupal\Component\Utility\UrlHelper;
|
||||
use Drupal\Core\Render\Element;
|
||||
use Drupal\Core\Render\Element\RenderElement;
|
||||
use Drupal\Core\Template\Attribute;
|
||||
use Drupal\Core\Url;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
|
|
@ -29,7 +30,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
|
|||
function template_preprocess_select(&$variables) {
|
||||
$element = $variables['element'];
|
||||
Element::setAttributes($element, array('id', 'name', 'size'));
|
||||
Element\RenderElement::setAttributes($element, array('form-select'));
|
||||
RenderElement::setAttributes($element, array('form-select'));
|
||||
|
||||
$variables['attributes'] = $element['#attributes'];
|
||||
$variables['options'] = form_select_options($element);
|
||||
|
|
@ -191,7 +192,7 @@ function form_get_options($element, $key) {
|
|||
function template_preprocess_fieldset(&$variables) {
|
||||
$element = $variables['element'];
|
||||
Element::setAttributes($element, array('id'));
|
||||
Element\RenderElement::setAttributes($element);
|
||||
RenderElement::setAttributes($element);
|
||||
$variables['attributes'] = isset($element['#attributes']) ? $element['#attributes'] : array();
|
||||
$variables['prefix'] = isset($element['#field_prefix']) ? $element['#field_prefix'] : NULL;
|
||||
$variables['suffix'] = isset($element['#field_suffix']) ? $element['#field_suffix'] : NULL;
|
||||
|
|
@ -376,7 +377,7 @@ function template_preprocess_form(&$variables) {
|
|||
function template_preprocess_textarea(&$variables) {
|
||||
$element = $variables['element'];
|
||||
Element::setAttributes($element, array('id', 'name', 'rows', 'cols', 'placeholder'));
|
||||
Element\RenderElement::setAttributes($element, array('form-textarea'));
|
||||
RenderElement::setAttributes($element, array('form-textarea'));
|
||||
$variables['wrapper_attributes'] = new Attribute();
|
||||
$variables['attributes'] = new Attribute($element['#attributes']);
|
||||
$variables['value'] = $element['#value'];
|
||||
|
|
|
|||
Reference in a new issue