function claro_form_user_admin_permissions_alter

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

Implements hook_form_FORM_ID_alter() for the user_admin_permissions form.

File

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

Code

function claro_form_user_admin_permissions_alter(&$form, FormStateInterface $form_state) {
    if (isset($form['filters'])) {
        $form['filters']['#attributes']['class'][] = 'permissions-table-filter';
        if (isset($form['filters']['text'])) {
            unset($form['filters']['text']['#title_display']);
            $form['filters']['text']['#title'] = t('Filter');
        }
    }
}

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