You are here

public function MobileDeviceDetection::isTablet in Mobile Device Detection 8.3

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

Is checking tablet or not.

File

src/Object/MobileDeviceDetection.php, line 104

Class

MobileDeviceDetection
MobileDeviceDetection object.

Namespace

Drupal\mobile_device_detection\Object

Code

public function isTablet() {
  return $this->object->type === 'tablet' ? TRUE : FALSE;
}