diff --git a/src/Controller/ExplorerController.php b/src/Controller/ExplorerController.php index 200fcf59e..3528cd4e9 100644 --- a/src/Controller/ExplorerController.php +++ b/src/Controller/ExplorerController.php @@ -86,6 +86,13 @@ public function viewExplorer(ServerInterface $graphql_server, Request $request) $url = $this->urlGenerator->generate("graphql.query.{$graphql_server->id()}"); $introspectionData = $this->introspection->introspect($graphql_server); + if ($graphql_server->get('disable_introspection')) { + return [ + '#type' => 'markup', + '#markup' => $this->t('Introspection is disabled for this server, enable it to use the Explorer.'), + ]; + } + return [ '#type' => 'markup', '#markup' => '
',