function claro_preprocess_views_ui_rearrange_filter_form

Same name and namespace in other branches
  1. 10 core/themes/claro/claro.theme \claro_preprocess_views_ui_rearrange_filter_form()
  2. 9 core/themes/claro/claro.theme \claro_preprocess_views_ui_rearrange_filter_form()

Implements hook_preprocess_HOOK() for views_ui_rearrange_filter_form.

Views UI rearrange filter form.

File

core/themes/claro/claro.theme, line 1564

Code

function claro_preprocess_views_ui_rearrange_filter_form(array &$variables) : void {
  foreach ($variables['table']['#rows'] as &$row) {
    // Remove the container-inline class from the operator table cell.
    if (isset($row['data'][0]['class'])) {
      $row['data'][0]['class'] = array_diff($row['data'][0]['class'], [
        'container-inline',
      ]);
    }
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.