Set placeholder for views exposed input
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');
   }
}