public function IsMobileCacheContext::__construct in Mobile Detect 8.2
Constructs an IsFrontPathCacheContext object.
Parameters
\Detection\MobileDetect $mobile_detect:
File
- src/
Cache/ Context/ IsMobileCacheContext.php, line 26
Class
- IsMobileCacheContext
- Defines the 'Is mobile' cache context.
Namespace
Drupal\mobile_detect\Cache\ContextCode
public function __construct(MobileDetect $mobile_detect) {
$this->mobileDetect = $mobile_detect;
}