You are here

private function MobileDeviceDetection::match in Mobile Device Detection 8.2

Same name and namespace in other branches
  1. 8.3 src/Object/MobileDeviceDetection.php \Drupal\mobile_device_detection\Object\MobileDeviceDetection::match()
2 calls to MobileDeviceDetection::match()
MobileDeviceDetection::check in src/Object/MobileDeviceDetection.php
MobileDeviceDetection::get in src/Object/MobileDeviceDetection.php

File

src/Object/MobileDeviceDetection.php, line 242

Class

MobileDeviceDetection
MobileDeviceDetection object.

Namespace

Drupal\mobile_device_detection\Object

Code

private function match($value) {
  return (bool) preg_match(sprintf('#%s#is', $value), $this
    ->getUserAgentHeaders(), $matches);
}