You are here

class DenyQuery in GraphQL 8.3

Hierarchy

Expanded class hierarchy of DenyQuery

1 string reference to 'DenyQuery'
graphql.services.yml in ./graphql.services.yml
graphql.services.yml
1 service uses DenyQuery
graphql.request_policy.deny_query in ./graphql.services.yml
Drupal\graphql\Cache\RequestPolicy\DenyQuery

File

src/Cache/RequestPolicy/DenyQuery.php, line 8

Namespace

Drupal\graphql\Cache\RequestPolicy
View source
class DenyQuery implements RequestPolicyInterface {

  /**
   * {@inheritdoc}
   */
  public function check(Request $request) {
    if ($request->attributes
      ->has('_graphql')) {
      return static::DENY;
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DenyQuery::check public function Determines whether delivery of a cached page should be attempted. Overrides RequestPolicyInterface::check
RequestPolicyInterface::ALLOW constant Allow delivery of cached pages.
RequestPolicyInterface::DENY constant Deny delivery of cached pages.