You are here

private function MobileDeviceDetection::match in Mobile Device Detection 8.3

Same name and namespace in other branches
  1. 8.2 src/Object/MobileDeviceDetection.php \Drupal\mobile_device_detection\Object\MobileDeviceDetection::match()

Match headers.

2 calls to MobileDeviceDetection::match()
MobileDeviceDetection::check in src/Object/MobileDeviceDetection.php
Is checking which kind of device using.
MobileDeviceDetection::get in src/Object/MobileDeviceDetection.php
Get options.

File

src/Object/MobileDeviceDetection.php, line 279

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);
}