Drupal 8  8.0.2
DenyPrivateImageStyleDownload Class Reference
Inheritance diagram for DenyPrivateImageStyleDownload:

Public Member Functions

 __construct (RouteMatchInterface $route_match)
 
 check (Response $response, Request $request)
 

Protected Attributes

 $routeMatch
 

Additional Inherited Members

- Data Fields inherited from ResponsePolicyInterface
const DENY = 'deny'
 

Detailed Description

Cache policy for image preview page.

This policy rule denies caching of responses generated by the entity.image.preview route.

Constructor & Destructor Documentation

__construct ( RouteMatchInterface  $route_match)

Constructs a deny image preview page cache policy.

Parameters
\Drupal\Core\Routing\RouteMatchInterface$route_matchThe current route match.

References Drupal\routeMatch().

Here is the call graph for this function:

Member Function Documentation

check ( Response  $response,
Request  $request 
)

{Determines whether it is save to store a page in the cache.

Parameters
\Symfony\Component\HttpFoundation\Response$responseThe response which is about to be sent to the client.
\Symfony\Component\HttpFoundation\Request$requestThe request object.
Returns
string|NULL Either static::DENY or NULL. Calling code may attempt to store a page in the cache unless static::DENY is returned. Returns NULL if the policy policy is not specified for the given response.
}

Implements ResponsePolicyInterface.

References Drupal\routeMatch().

Here is the call graph for this function:


The documentation for this class was generated from the following file: