You are here

protected function AccessUnpublishedRouteLoad::setTokenGetter in Access unpublished 8

Sets the token getter service.

Parameters

\Drupal\access_unpublished\TokenGetter $tokenGetter: The token getter service.

File

src/Plugin/GraphQL/DataProducer/AccessUnpublishedRouteLoad.php, line 61

Class

AccessUnpublishedRouteLoad
Loads a route with an optional token.

Namespace

Drupal\access_unpublished\Plugin\GraphQL\DataProducer

Code

protected function setTokenGetter(TokenGetter $tokenGetter) {
  $this->tokenGetter = $tokenGetter;
}