You are here

public function SavedSearchInterface::getAccessToken in Search API Saved Searches 8

Generates an access token specific to this saved search.

This can be used for access checks independent of a user account (for instance, for accessing a saved search via mail – especially for anonymous users).

Parameters

string $operation: The operation to perform on the saved search entity. The returned token will be only valid for this operation.

Return value

string The access token for executing the given operation on this search.

1 method overrides SavedSearchInterface::getAccessToken()
SavedSearch::getAccessToken in src/Entity/SavedSearch.php
Generates an access token specific to this saved search.

File

src/SavedSearchInterface.php, line 67

Class

SavedSearchInterface
Provides an interface for saved search entities.

Namespace

Drupal\search_api_saved_searches

Code

public function getAccessToken($operation);