In drupal 7 i used this hook to implement user filter form (People->Filter). This hook doesn't work in drupal 8. Any suggestions?
/**
* Implements hook_form_FORM_ID_alter().
*/
function cl_form_user_filter_form_alter(&$form, &$form_state, $form_id) {
//code here
}
Well, i added this function to my module, but no results at all. Am i doing something wrong?
function cl_form_views_exposed_form_alter(&$form, &$form_state, $form_id)
{
$form['actions']['find_users'] = array(
'#type' => 'submit',
'#value' => t('Check for users'),
'#submit' => array('cl_find_users'),
);
}