class SplashifyPath in Splashify 8.2
Disable cache if splash exist.
Hierarchy
- class \Drupal\splashify\PageCache\SplashifyPath implements RequestPolicyInterface
Expanded class hierarchy of SplashifyPath
1 string reference to 'SplashifyPath'
1 service uses SplashifyPath
File
- src/
PageCache/ SplashifyPath.php, line 11
Namespace
Drupal\splashify\PageCacheView source
class SplashifyPath implements RequestPolicyInterface {
/**
* {@inheritdoc}
*/
public function check(Request $request) {
if (\Drupal::service('splashify.injection')
->isSplashExist($request)) {
\Drupal::service('page_cache_kill_switch')
->trigger();
return static::DENY;
}
return static::ALLOW;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RequestPolicyInterface:: |
constant | Allow delivery of cached pages. | ||
RequestPolicyInterface:: |
constant | Deny delivery of cached pages. | ||
SplashifyPath:: |
public | function |
Determines whether delivery of a cached page should be attempted. Overrides RequestPolicyInterface:: |