You are here

interface QueryProviderInterface in GraphQL 8.3

Hierarchy

Expanded class hierarchy of QueryProviderInterface

All classes that implement QueryProviderInterface

4 files declare their use of QueryProviderInterface
PermissionsTest.php in tests/src/Kernel/Framework/PermissionsTest.php
ResultCacheTest.php in tests/src/Kernel/Framework/ResultCacheTest.php
ResultTest.php in tests/src/Kernel/Framework/ResultTest.php
SchemaPluginBase.php in src/Plugin/GraphQL/Schemas/SchemaPluginBase.php

File

src/GraphQL/QueryProvider/QueryProviderInterface.php, line 7

Namespace

Drupal\graphql\GraphQL\QueryProvider
View source
interface QueryProviderInterface {

  /**
   * Returns a query string given the query parameters.
   *
   * Can be used to load a query string from arbitrary query parameters e.g.
   * when using persisted queries (loading queries by their hash or version and
   * id).
   *
   * @param string $id
   *   The query id.
   * @param \GraphQL\Server\OperationParams $operation
   *   The operation parameters.
   *
   * @return string|null
   *   The query string or NULL if it couldn't be determined.
   */
  public function getQuery($id, OperationParams $operation);

}

Members

Namesort descending Modifiers Type Description Overrides
QueryProviderInterface::getQuery public function Returns a query string given the query parameters. 3