You are here

public function PluginInterface::setSearch in Search API Autocomplete 8

Sets the search this plugin is configured for.

Parameters

\Drupal\search_api_autocomplete\SearchInterface $search: The new search entity this plugin should be linked to.

Return value

$this

1 method overrides PluginInterface::setSearch()
PluginBase::setSearch in src/Plugin/PluginBase.php
Sets the search this plugin is configured for.

File

src/Plugin/PluginInterface.php, line 30

Class

PluginInterface
Provides a common interface for autocomplete search plugins.

Namespace

Drupal\search_api_autocomplete\Plugin

Code

public function setSearch(SearchInterface $search);