You are here

public function SearchPluginBase::getAttributes in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::getAttributes()
  2. 9 core/modules/search/src/Plugin/SearchPluginBase.php \Drupal\search\Plugin\SearchPluginBase::getAttributes()

Returns the currently set attributes (from the request).

Return value

array The attributes.

Overrides SearchInterface::getAttributes

File

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

Class

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

Namespace

Drupal\search\Plugin

Code

public function getAttributes() {
  return $this->searchAttributes;
}