You are here

protected function PersistedQueryPluginTwo::queryMap in GraphQL 8.4

Map between persisted query IDs and corresponding GraphQL queries.

1 call to PersistedQueryPluginTwo::queryMap()
PersistedQueryPluginTwo::getQuery in tests/modules/graphql_persisted_queries_test/src/Plugin/GraphQL/PersistedQuery/PersistedQueryPluginTwo.php
Returns a query if this plugin has it.

File

tests/modules/graphql_persisted_queries_test/src/Plugin/GraphQL/PersistedQuery/PersistedQueryPluginTwo.php, line 31

Class

PersistedQueryPluginTwo
@PersistedQuery( id = "persisted_query_plugin_two", label = "Persisted Query Two", description = "This is the second persisted query plugin" )

Namespace

Drupal\graphql_persisted_queries_test\Plugin\GraphQL\PersistedQuery

Code

protected function queryMap() : array {
  return [
    'query_1' => 'query { field_two }',
  ];
}