public function MobileDetectTwig::getFunctions in Mobile Detect 8.2
* Get extension twig function *
Return value
array
File
- src/
Twig/ MobileDetectTwig.php, line 35
Class
- MobileDetectTwig
- MobileDetectTwig class.
Namespace
Drupal\mobile_detect\TwigCode
public function getFunctions() {
return [
new TwigFunction('is_mobile', [
$this,
'isMobile',
]),
new TwigFunction('is_tablet', [
$this,
'isTablet',
]),
new TwigFunction('is_device', [
$this,
'isDevice',
]),
new TwigFunction('is_ios', [
$this,
'isIOS',
]),
new TwigFunction('is_android_os', [
$this,
'isAndroidOS',
]),
];
}