function umami_form_search_block_form_alter
Same name in other branches
- 8.9.x core/profiles/demo_umami/themes/umami/umami.theme \umami_form_search_block_form_alter()
- 10 core/profiles/demo_umami/themes/umami/umami.theme \umami_form_search_block_form_alter()
- 11.x core/profiles/demo_umami/themes/umami/umami.theme \umami_form_search_block_form_alter()
Implements hook_form_FORM_ID_alter().
File
-
core/
profiles/ demo_umami/ themes/ umami/ umami.theme, line 94
Code
function umami_form_search_block_form_alter(&$form, FormStateInterface $form_state) {
$form['keys']['#attributes']['placeholder'] = t('Search by keyword, ingredient, dish');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.