Skip to content
Snippets Groups Projects
Commit 0f1a044e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2208585 by googletorp, quicksketch: Make #wrapper_attributes official and document it

parent 4c49e1e5
No related branches found
No related tags found
No related merge requests found
......@@ -403,15 +403,9 @@ function template_preprocess_form_element(&$variables) {
// \Drupal::formBuilder()->doBuildForm().
$element += array(
'#title_display' => 'before',
'#wrapper_attributes' => array(),
);
// Take over any #wrapper_attributes defined by the element.
// @todo Temporary hack for #type 'item'.
// @see http://drupal.org/node/1829202
$variables['attributes'] = array();
if (isset($element['#wrapper_attributes'])) {
$variables['attributes'] = $element['#wrapper_attributes'];
}
$variables['attributes'] = $element['#wrapper_attributes'];
// Add element #id for #type 'item'.
if (isset($element['#markup']) && !empty($element['#id'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment