X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsearch%2Fsrc%2FPlugin%2FSearchPluginBase.php;fp=web%2Fcore%2Fmodules%2Fsearch%2Fsrc%2FPlugin%2FSearchPluginBase.php;h=7312df49fc17ec542a7a87c094f6addc0df86974;hp=7bf4f0f4e35bd61e89f9e83ecf2abd5174fa7c4a;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/search/src/Plugin/SearchPluginBase.php b/web/core/modules/search/src/Plugin/SearchPluginBase.php index 7bf4f0f4e..7312df49f 100644 --- a/web/core/modules/search/src/Plugin/SearchPluginBase.php +++ b/web/core/modules/search/src/Plugin/SearchPluginBase.php @@ -146,16 +146,18 @@ abstract class SearchPluginBase extends PluginBase implements ContainerFactoryPl public function getHelp() { // This default search help is appropriate for plugins like NodeSearch // that use the SearchQuery class. - $help = ['list' => [ - '#theme' => 'item_list', - '#items' => [ - $this->t('Search looks for exact, case-insensitive keywords; keywords shorter than a minimum length are ignored.'), - $this->t('Use upper-case OR to get more results. Example: cat OR dog (content contains either "cat" or "dog").'), - $this->t('You can use upper-case AND to require all words, but this is the same as the default behavior. Example: cat AND dog (same as cat dog, content must contain both "cat" and "dog").'), - $this->t('Use quotes to search for a phrase. Example: "the cat eats mice".'), - $this->t('You can precede keywords by - to exclude them; you must still have at least one "positive" keyword. Example: cat -dog (content must contain cat and cannot contain dog).'), + $help = [ + 'list' => [ + '#theme' => 'item_list', + '#items' => [ + $this->t('Search looks for exact, case-insensitive keywords; keywords shorter than a minimum length are ignored.'), + $this->t('Use upper-case OR to get more results. Example: cat OR dog (content contains either "cat" or "dog").'), + $this->t('You can use upper-case AND to require all words, but this is the same as the default behavior. Example: cat AND dog (same as cat dog, content must contain both "cat" and "dog").'), + $this->t('Use quotes to search for a phrase. Example: "the cat eats mice".'), + $this->t('You can precede keywords by - to exclude them; you must still have at least one "positive" keyword. Example: cat -dog (content must contain cat and cannot contain dog).'), + ], ], - ]]; + ]; return $help; }