From 5b09f34be14c38be476de5260987b71d324773e8 Mon Sep 17 00:00:00 2001 From: xjm <xjm@65776.no-reply.drupal.org> Date: Thu, 14 Sep 2023 09:18:50 -0500 Subject: [PATCH] Issue #463106 by ao5357, star-szr, kika, Xano, Abhijith S, ericrubino, benjifisher, webchick, rkoller, lukasfischer, AaronMcHale, Emma Horrell: Improve search settings help text --- core/modules/search/src/SearchPageListBuilder.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/modules/search/src/SearchPageListBuilder.php b/core/modules/search/src/SearchPageListBuilder.php index 8b844a6b5e48..85e2be248ea1 100644 --- a/core/modules/search/src/SearchPageListBuilder.php +++ b/core/modules/search/src/SearchPageListBuilder.php @@ -226,19 +226,17 @@ public function buildForm(array $form, FormStateInterface $form_state) { ]; $form['indexing_throttle']['cron_limit'] = [ '#type' => 'select', - '#title' => $this->t('Number of items to index per cron run'), + '#title' => $this->t('Number of items to index per run'), '#default_value' => $search_settings->get('index.cron_limit'), '#options' => $items, - '#description' => $this->t('The maximum number of items indexed in each run of the <a href=":cron">cron maintenance task</a>. If necessary, reduce the number of items to prevent timeouts and memory errors while indexing. Some search page types may have their own setting for this.', [':cron' => Url::fromRoute('system.cron_settings')->toString()]), + '#description' => $this->t('The maximum number of items processed per indexing run. If necessary, reduce the number of items to prevent timeouts and memory errors while indexing. Some search page types may have their own setting for this.'), ]; // Indexing settings: $form['indexing_settings'] = [ '#type' => 'details', '#title' => $this->t('Default indexing settings'), '#open' => TRUE, - ]; - $form['indexing_settings']['info'] = [ - '#markup' => $this->t("<p>Search pages that use an index may use the default index provided by the Search module, or they may use a different indexing mechanism. These settings are for the default index. <em>Changing these settings will cause the default search index to be rebuilt to reflect the new settings. Searching will continue to work, based on the existing index, but new content won't be indexed until all existing content has been re-indexed.</em></p><p><em>The default settings should be appropriate for the majority of sites.</em></p>"), + '#description' => $this->t('Changing these settings will cause the default search index to be rebuilt to reflect the new settings. Searching will continue to work, based on the existing index, but new content will not be indexed until all existing content has been re-indexed.'), ]; $form['indexing_settings']['minimum_word_size'] = [ '#type' => 'number', -- GitLab