diff -u b/core/modules/node/node.module b/core/modules/node/node.module --- b/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -138,10 +138,6 @@ 'node' => array( 'render element' => 'elements', ), - 'node_search_admin' => array( - 'render element' => 'form', - 'function' => 'theme_node_search_admin', - ), 'node_add_list' => array( 'variables' => array('content' => NULL), 'file' => 'node.pages.inc', diff -u b/core/modules/node/src/Plugin/Search/NodeSearch.php b/core/modules/node/src/Plugin/Search/NodeSearch.php --- b/core/modules/node/src/Plugin/Search/NodeSearch.php +++ b/core/modules/node/src/Plugin/Search/NodeSearch.php @@ -558,7 +558,7 @@ '#markup' => '

' . $this->t('Influence is a numeric multiplier used in ordering search results. A higher number means the corresponding factor has more influence on search results; zero means the factor is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . '

' ); // Prepare table. - $header = array(t('Factor'), t('Influence')); + $header = [$this->t('Factor'), $this->t('Influence')]; $form['content_ranking']['rankings'] = array( '#type' => 'table', '#header' => $header, @@ -574,6 +574,7 @@ $form['content_ranking']['rankings'][$var]['value'] = array( '#type' => 'select', '#options' => $options, + '#attributes' => ['aria-label' => 'Influence of ' . $values['title']], '#default_value' => isset($this->configuration['rankings'][$var]) ? $this->configuration['rankings'][$var] : 0, ); } @@ -585,8 +586,8 @@ */ public function submitConfigurationForm(array &$form, FormStateInterface $form_state) { foreach ($this->getRankings() as $var => $values) { - if (!$form_state->isValueEmpty(array('rankings', $var, 'value'))) { - $this->configuration['rankings'][$var] = $form_state->getValue(array('rankings', $var, 'value')); + if (!$form_state->isValueEmpty(['rankings', $var, 'value'])) { + $this->configuration['rankings'][$var] = $form_state->getValue(['rankings', $var, 'value']); } else { unset($this->configuration['rankings'][$var]);