You are here

public function AddSearchMetaEvent::setMeta in JSON:API Search API 8

Sets an entry in the meta.

Parameters

string $key: The key to be used in the meta portion of the JSON:API response.

string|array $value: The value to be used in the JSON:API response.

File

src/Event/AddSearchMetaEvent.php, line 89

Class

AddSearchMetaEvent
Allows for other sources to modify the meta portion of the search.

Namespace

Drupal\jsonapi_search_api\Event

Code

public function setMeta($key, $value) {
  $this->meta[$key] = $value;
}