You are here

private function MobileDeviceDetectionObject::_match in Mobile Device Detection 8

2 calls to MobileDeviceDetectionObject::_match()
MobileDeviceDetectionObject::check in src/Object/MobileDeviceDetectionObject.php
MobileDeviceDetectionObject::_get in src/Object/MobileDeviceDetectionObject.php

File

src/Object/MobileDeviceDetectionObject.php, line 239

Class

MobileDeviceDetectionObject

Namespace

Drupal\mobile_device_detection\Object

Code

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