public static function AccessUnpublishedRouteLoad::create in Access unpublished 8
@codeCoverageIgnore
Overrides RouteLoad::create
File
- src/
Plugin/ GraphQL/ DataProducer/ AccessUnpublishedRouteLoad.php, line 49
Class
- AccessUnpublishedRouteLoad
- Loads a route with an optional token.
Namespace
Drupal\access_unpublished\Plugin\GraphQL\DataProducerCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$routeLoad = parent::create($container, $configuration, $plugin_id, $plugin_definition);
$routeLoad
->setTokenGetter($container
->get('access_unpublished.token_getter'));
return $routeLoad;
}