You are here

private function MobileDeviceDetection::getOperatingSystem 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::getOperatingSystem()

Get operating system.

1 call to MobileDeviceDetection::getOperatingSystem()
MobileDeviceDetection::getObject in src/Object/MobileDeviceDetection.php
Get object.

File

src/Object/MobileDeviceDetection.php, line 250

Class

MobileDeviceDetection
MobileDeviceDetection object.

Namespace

Drupal\mobile_device_detection\Object

Code

private function getOperatingSystem() {
  $this->object->OS = $this
    ->get($this
    ->getAttributes()
    ->get('operating_systems'));
  $this
    ->version($this->object->OS);
}