function SearchInterface::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.

See also

\Drupal\search\SearchIndexInterface::index()

\Drupal\search\SearchIndexInterface::clear()

1 method overrides SearchInterface::getType()
SearchPluginBase::getType in core/modules/search/src/Plugin/SearchPluginBase.php
Returns the search index type this plugin uses.

File

core/modules/search/src/Plugin/SearchInterface.php, line 72

Class

SearchInterface
Defines a common interface for all SearchPlugin objects.

Namespace

Drupal\search\Plugin

Code

public function getType();

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