You are here

function claro_preprocess_views_ui_rearrange_filter_form in Drupal 9

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

Implements hook_form_FORM_ID_alter() for the Views UI rearrange filter form.

File

core/themes/claro/claro.theme, line 1513
Functions to support theming in the Claro theme.

Code

function claro_preprocess_views_ui_rearrange_filter_form(array &$variables) {
  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',
      ]);
    }
  }
}