You are here

private function MobileDeviceDetectionObject::_get in Mobile Device Detection 8

2 calls to MobileDeviceDetectionObject::_get()
MobileDeviceDetectionObject::getBrowser in src/Object/MobileDeviceDetectionObject.php
MobileDeviceDetectionObject::getOperatingSystem in src/Object/MobileDeviceDetectionObject.php

File

src/Object/MobileDeviceDetectionObject.php, line 226

Class

MobileDeviceDetectionObject

Namespace

Drupal\mobile_device_detection\Object

Code

private function _get($options) {
  foreach ($options as $key => $value) {
    if (!empty($value)) {
      if ($this
        ->_match($value)) {
        return $key;
      }
    }
  }
}