You are here

function better_search_preprocess_form_element in Better Search Block 8

Implements better_search_preprocess_form_element().

File

./better_search.module, line 103
This module enables basic Better Search functionality.

Code

function better_search_preprocess_form_element(&$variables) {
  if ($variables['element']['#type'] == 'search') {
    $variables['attributes'][] = new Attribute([
      'class' => [
        'clearfix',
      ],
    ]);
  }
}