Same name and namespace in other branches
  1. 8.9.x 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()

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

See also

\Drupal\search\SearchIndexInterface::index()

\Drupal\search\SearchIndexInterface::clear()

File

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

Class

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

Namespace

Drupal\search\Plugin

Code

public function getType() {
  return NULL;
}