class DenyQuery in GraphQL 8.3
Hierarchy
- class \Drupal\graphql\Cache\RequestPolicy\DenyQuery implements RequestPolicyInterface
Expanded class hierarchy of DenyQuery
1 string reference to 'DenyQuery'
1 service uses DenyQuery
File
- src/
Cache/ RequestPolicy/ DenyQuery.php, line 8
Namespace
Drupal\graphql\Cache\RequestPolicyView source
class DenyQuery implements RequestPolicyInterface {
/**
* {@inheritdoc}
*/
public function check(Request $request) {
if ($request->attributes
->has('_graphql')) {
return static::DENY;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DenyQuery:: |
public | function |
Determines whether delivery of a cached page should be attempted. Overrides RequestPolicyInterface:: |
|
RequestPolicyInterface:: |
constant | Allow delivery of cached pages. | ||
RequestPolicyInterface:: |
constant | Deny delivery of cached pages. |