X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fthemes%2Fcontrib%2Fbootstrap%2Fsrc%2FPlugin%2FPreprocess%2FFormElement.php;fp=web%2Fthemes%2Fcontrib%2Fbootstrap%2Fsrc%2FPlugin%2FPreprocess%2FFormElement.php;h=e296d83b12af36c470f28e28219b7bf02a02f12c;hp=a61262b185dd260d568bad953f55a08668f58b3d;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/themes/contrib/bootstrap/src/Plugin/Preprocess/FormElement.php b/web/themes/contrib/bootstrap/src/Plugin/Preprocess/FormElement.php index a61262b18..e296d83b1 100644 --- a/web/themes/contrib/bootstrap/src/Plugin/Preprocess/FormElement.php +++ b/web/themes/contrib/bootstrap/src/Plugin/Preprocess/FormElement.php @@ -1,12 +1,7 @@ isType('checkbox'); $radio = $variables['is_radio'] = $element->isType('radio'); // Determine if the form element should have the "form-group" class added. // Use an explicitly set property from the element or use its other // properties as the criteria to determine if it should be set. - $variables['is_form_group'] = $element->getProperty('form_group', !$variables['is_checkbox'] && !$variables['is_radio'] && !$element->isType(['hidden', 'textarea'])); + $variables['is_form_group'] = $element->getProperty('form_group', !$checkbox && !$radio && !$element->isType('hidden')); // Add label_display and label variables to template. $display = $variables['label_display'] = $variables['title_display'] = $element->getProperty('title_display');