You are here

public function MobileDeviceDetection::getObject 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::getObject()
  2. 8 src/Object/MobileDeviceDetection.php \Drupal\mobile_device_detection\Object\MobileDeviceDetection::getObject()

File

src/Object/MobileDeviceDetection.php, line 74

Class

MobileDeviceDetection
MobileDeviceDetection object.

Namespace

Drupal\mobile_device_detection\Object

Code

public function getObject() {
  if (isset($this->object->type)) {
    $this
      ->getOperatingSystem();
    $this
      ->getBrowser();
    return $this->object;
  }
}