Update SearchForm.php
Added aria label for Search textbox
This commit is contained in:
parent
e632b96314
commit
134e8aa4aa
1 changed files with 5 additions and 1 deletions
|
|
@ -44,7 +44,11 @@ class SearchForm extends FormBase
|
||||||
$form['search-textfield'] = array(
|
$form['search-textfield'] = array(
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => (!empty($settings['search_textfield_label']) ? $settings['search_textfield_label'] : ''),
|
'#title' => (!empty($settings['search_textfield_label']) ? $settings['search_textfield_label'] : ''),
|
||||||
'#attributes' => ['placeholder' => $settings['search_placeholder']]
|
'#attributes' => [
|
||||||
|
'placeholder' => $this->t($settings['search_placeholder']),
|
||||||
|
'aria-label' => $this->t($settings['search_placeholder']),
|
||||||
|
],
|
||||||
|
'#theme_wrappers' => []
|
||||||
);
|
);
|
||||||
|
|
||||||
$form['actions']['#type'] = 'actions';
|
$form['actions']['#type'] = 'actions';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue