public SessionCacheContext::getContext()
File
- core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php, line 24
Class
- SessionCacheContext
- Defines the SessionCacheContext service, for "per session" caching.
Namespace
Drupal\Core\Cache\Context
Code
1 2 3 4 | public function getContext() { $sid = $this ->requestStack->getCurrentRequest()->getSession()->getId(); return Crypt::hashBase64( $sid ); } |
Please login to continue.