You are here

protected function TestLinkProvider::setCurrentAccount in JSON:API Hypermedia 8

Sets the current account.

Parameters

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

File

tests/modules/jsonapi_hypermedia_test_link_providers/src/Plugin/jsonapi_hypermedia/LinkProvider/TestLinkProvider.php, line 49

Class

TestLinkProvider
Class TestLinkProvider.

Namespace

Drupal\jsonapi_hypermedia_test_link_providers\Plugin\jsonapi_hypermedia\LinkProvider

Code

protected function setCurrentAccount(AccountInterface $account) {
  $this->account = $account;
}