interface QueryProviderInterface in GraphQL 8.3
Hierarchy
- interface \Drupal\graphql\GraphQL\QueryProvider\QueryProviderInterface
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\QueryProviderView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
QueryProviderInterface:: |
public | function | Returns a query string given the query parameters. | 3 |