You are here

public function SearchInterface::setSearch in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/search/src/Plugin/SearchInterface.php \Drupal\search\Plugin\SearchInterface::setSearch()

Sets the keywords, parameters, and attributes to be used by execute().

Parameters

string $keywords: The keywords to use in a search.

array $parameters: Array of parameters as an associative array. This is expected to be the query string from the current request.

array $attributes: Array of attributes, usually from the current request object.

Return value

\Drupal\search\Plugin\SearchInterface A search plugin object for chaining.

1 method overrides SearchInterface::setSearch()
SearchPluginBase::setSearch in core/modules/search/src/Plugin/SearchPluginBase.php
Sets the keywords, parameters, and attributes to be used by execute().

File

core/modules/search/src/Plugin/SearchInterface.php, line 32
Contains \Drupal\search\Plugin\SearchInterface.

Class

SearchInterface
Defines a common interface for all SearchPlugin objects.

Namespace

Drupal\search\Plugin

Code

public function setSearch($keywords, array $parameters, array $attributes);