function ClaroHooks::preprocessViewsUiRearrangeFilterForm
Same name and namespace in other branches
- 11.x core/themes/claro/src/Hook/ClaroHooks.php \Drupal\claro\Hook\ClaroHooks::preprocessViewsUiRearrangeFilterForm()
Implements hook_preprocess_HOOK() for views_ui_rearrange_filter_form.
Views UI rearrange filter form.
Attributes
#[Hook('preprocess_views_ui_rearrange_filter_form')]
File
-
core/
themes/ claro/ src/ Hook/ ClaroHooks.php, line 1411
Class
- ClaroHooks
- Hook implementations for claro.
Namespace
Drupal\claro\HookCode
public function preprocessViewsUiRearrangeFilterForm(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.