function SearchPluginBase::getKeywords

Same name and namespace in other branches
  1. 10 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::getKeywords()
  2. 9 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::getKeywords()
  3. 8.9.x core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::getKeywords()
  4. main 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

5 calls to SearchPluginBase::getKeywords()
HelpSearch::findResults in core/modules/help/src/Plugin/Search/HelpSearch.php
Finds the search results.
HelpSearch::prepareResults in core/modules/help/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.
SearchHelpSearch::findResults in core/modules/search/modules/search_help/src/Plugin/Search/SearchHelpSearch.php
Finds the search results.
SearchHelpSearch::prepareResults in core/modules/search/modules/search_help/src/Plugin/Search/SearchHelpSearch.php
Prepares search results for display.

File

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

Class

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

Namespace

Drupal\search\Plugin

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.