function UmamiHooks::formSearchBlockFormAlter

Same name and namespace in other branches
  1. 11.x core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php \Drupal\umami\Hook\UmamiHooks::formSearchBlockFormAlter()

Implements hook_form_FORM_ID_alter() for search_block_form.

Attributes

#[Hook('form_search_block_form_alter')]

File

core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php, line 141

Class

UmamiHooks
Hook implementations for umami.

Namespace

Drupal\umami\Hook

Code

public function formSearchBlockFormAlter(&$form, FormStateInterface $form_state) : void {
  $form['keys']['#attributes']['placeholder'] = $this->t('Search by keyword, ingredient, dish');
}

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