You are here

public function SearchPluginBase::getKeywords in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::getKeywords()

Returns the currently set keywords of the plugin instance.

Return value

string The keywords.

Overrides SearchInterface::getKeywords

3 calls to SearchPluginBase::getKeywords()
HelpSearch::findResults in core/modules/help_topics/src/Plugin/Search/HelpSearch.php
Finds the search results.
HelpSearch::prepareResults in core/modules/help_topics/src/Plugin/Search/HelpSearch.php
Prepares search results for display.
NodeSearch::searchFormAlter in core/modules/node/src/Plugin/Search/NodeSearch.php
Alters the search form when being built for a given plugin.

File

core/modules/search/src/Plugin/SearchPluginBase.php, line 61

Class

SearchPluginBase
Defines a base class for plugins wishing to support search.

Namespace

Drupal\search\Plugin

Code

public function getKeywords() {
  return $this->keywords;
}