You are here

public function MobileDetectTwig::isMobile in Mobile Detect 8.2

* Is mobile *

Return value

boolean

File

src/Twig/MobileDetectTwig.php, line 49

Class

MobileDetectTwig
MobileDetectTwig class.

Namespace

Drupal\mobile_detect\Twig

Code

public function isMobile() {
  return $this->mobileDetector
    ->isMobile();
}