diff --git a/web/modules/custom/asu_search/src/Form/SearchForm.php b/web/modules/custom/asu_search/src/Form/SearchForm.php index b1362facf..61fba044f 100644 --- a/web/modules/custom/asu_search/src/Form/SearchForm.php +++ b/web/modules/custom/asu_search/src/Form/SearchForm.php @@ -49,6 +49,7 @@ public function getFormId() { * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state) { + $config = \Drupal::config('system.site'); $form['#attributes']['class'][] = 'form--inline'; $form['search_api_fulltext'] = [ '#type' => 'textfield', @@ -56,13 +57,14 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#size' => 30, '#weight' => '0', '#title_display' => 'invisible', + '#attributes' => ['placeholder' => 'Search ' . $config->get('name') ], ]; $form['actions']['submit'] = [ '#type' => 'submit', '#title' => $this->t('Search'), '#weight' => '0', '#value' => 'Search', - '#attributes' => ['class' => ['col-md-3', 'form--inline']], + '#attributes' => ['class' => ['col-md-3', 'form--inline'], 'aria-label' => 'Search ' + $config->get('name')], ]; return $form; }