You are here

public function ExplorerController::__construct in GraphQL 8.2

Same name and namespace in other branches
  1. 8.4 src/Controller/ExplorerController.php \Drupal\graphql\Controller\ExplorerController::__construct()
  2. 8 src/Controller/ExplorerController.php \Drupal\graphql\Controller\ExplorerController::__construct()
  3. 8.3 src/Controller/ExplorerController.php \Drupal\graphql\Controller\ExplorerController::__construct()

Constructs a ExplorerController object.

Parameters

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator service.

File

src/Controller/ExplorerController.php, line 30

Class

ExplorerController
Controller for the GraphiQL query builder IDE.

Namespace

Drupal\graphql\Controller

Code

public function __construct(UrlGeneratorInterface $url_generator) {
  $this->urlGenerator = $url_generator;
}