Set placeholder for views exposed input I create a search section with view and I want hide label of search inputs and set placeholder for them.

Is there any section to set this?

Drupal 8
function hook_form_alter(&amp;$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
   if($form_id == 'views_exposed_form'){
      $form['field-name']['#attributes']['placeholder'] = t('Placeholder Keyword');
   }
}