Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SearchInterface.php

function 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

$this 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 27

Class

SearchInterface
Defines a common interface for all SearchPlugin objects.

Namespace

Drupal\search\Plugin

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal