function SearchPluginBase::getType

Same name and namespace in other branches
  1. 10 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::getType()
  2. 9 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::getType()
  3. 8.9.x core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::getType()
  4. main core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::getType()

Returns the search index type this plugin uses.

Return value

string|null The type used by this search plugin in the search index, or NULL if this plugin does not use the search index.

Overrides SearchInterface::getType

3 methods override SearchPluginBase::getType()
HelpSearch::getType in core/modules/help/src/Plugin/Search/HelpSearch.php
Returns the search index type this plugin uses.
NodeSearch::getType in core/modules/node/src/Plugin/Search/NodeSearch.php
Returns the search index type this plugin uses.
SearchHelpSearch::getType in core/modules/search/modules/search_help/src/Plugin/Search/SearchHelpSearch.php
Returns the search index type this plugin uses.

File

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

Class

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

Namespace

Drupal\search\Plugin

Code

public function getType() {
  return NULL;
}

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