1<?php
2/**
3 * Matomo - free/libre analytics platform
4 *
5 * @link https://matomo.org
6 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
7 */
8namespace Piwik\Plugins\TagManager\Template\Variable\PreConfigured;
9
10use Piwik\Plugins\TagManager\Context\WebContext;
11
12
13class ScreenHeight extends BasePreConfiguredVariable
14{
15    public function getCategory()
16    {
17        return self::CATEGORY_DEVICE;
18    }
19
20    public function loadTemplate($context, $entity)
21    {
22        switch ($context) {
23            case WebContext::ID:
24                return $this->makeReturnTemplateMethod('TagManager.window.getScreenHeight()');
25        }
26    }
27
28}
29