2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
@@ -90,6 +90,9 @@ function search_help($route_name, RouteMatchInterface $route_match) {
$output.='<dd>'.t('By default, the Search module only supports exact keyword matching in content searches. You can modify this behavior by installing a language-specific stemming module for your language (such as <a href=":porterstemmer_url">Porter Stemmer</a> for American English), which allows words such as walk, walking, and walked to be matched in the Search module. Another approach is to use a third-party search technology with stemming or partial word matching features built in, such as <a href=":solr_url">Apache Solr</a> or <a href=":sphinx_url">Sphinx</a>. There are also contributed modules that provide additional search pages. These and other <a href=":contrib-search">search-related contributed modules</a> can be downloaded by visiting Drupal.org.',array(':contrib-search'=>'https://www.drupal.org/project/project_module?f[2]=im_vid_3%3A105',':porterstemmer_url'=>'https://www.drupal.org/project/porterstemmer',':solr_url'=>'https://www.drupal.org/project/apachesolr',':sphinx_url'=>'https://www.drupal.org/project/sphinx')).'</dd>';
$output.='</dl>';
return$output;
case'entity.search_page.collection':
return'<p>'.t('The search engine maintains an index of words found in your site\'s content. To build and maintain this index, a correctly configured <a href=":cron">cron maintenance task</a> is required. Indexing behavior can be adjusted using the settings below.',array(':cron'=>\Drupal::url('system.status'))).'</p>';
@@ -188,7 +188,6 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#type'=>'details',
'#title'=>$this->t('Indexing progress'),
'#open'=>TRUE,
'#description'=>$this->t('Only items in the index will appear in search results. To build and maintain the index, a correctly configured <a href=":cron">cron maintenance task</a> is required.',array(':cron'=>\Drupal::url('system.cron_settings'))),
'#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.',array(':cron'=>\Drupal::url('system.cron_settings'))),
'#description'=>$this->t('The maximum number of items indexed in each pass of a <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.',array(':cron'=>\Drupal::url('system.status'))),
);
// Indexing settings:
$form['indexing_settings']=array(
...
...
@@ -228,7 +227,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#description'=>$this->t('The minimum character length for a word to be added to the index. Searches must include a keyword of at least this length.'),
'#description'=>$this->t('The number of characters a word has to be to be indexed. A lower setting means better search result ranking, but also a larger database. Each search query must contain at least one keyword that is this size (or longer).')