You are here

public function AccessUnpublishedRouteLoad::resolveUnpublished in Access unpublished 8

File

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

Class

AccessUnpublishedRouteLoad
Loads a route with an optional token.

Namespace

Drupal\access_unpublished\Plugin\GraphQL\DataProducer

Code

public function resolveUnpublished($path, $token, RefinableCacheableDependencyInterface $metadata) {
  $this->tokenGetter
    ->setToken($token);
  return parent::resolve($path, $metadata);
}