You are here

public function AutocompleteHelperInterface::access in Search API Autocomplete 8

Checks access to the autocompletion route.

Parameters

\Drupal\search_api_autocomplete\SearchInterface $search_api_autocomplete_search: The configured autocompletion search.

\Drupal\Core\Session\AccountInterface $account: The account.

Return value

\Drupal\Core\Access\AccessResultInterface The access result.

1 method overrides AutocompleteHelperInterface::access()
AutocompleteHelper::access in src/Utility/AutocompleteHelper.php
Checks access to the autocompletion route.

File

src/Utility/AutocompleteHelperInterface.php, line 52

Class

AutocompleteHelperInterface
Provides an interface for the autocomplete helper service.

Namespace

Drupal\search_api_autocomplete\Utility

Code

public function access(SearchInterface $search_api_autocomplete_search, AccountInterface $account);