29 lines
846 B
PHP
29 lines
846 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* This file is developed by evoWeb.
|
|
*
|
|
* It is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU General Public License, either version 2
|
|
* of the License, or any later version.
|
|
*
|
|
* For the full copyright and license information, please read the
|
|
* LICENSE.txt file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Evoweb\EwBase\ViewHelpers\Context;
|
|
|
|
use TYPO3\CMS\Core\Core\Environment;
|
|
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
|
|
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper;
|
|
|
|
class ProductionViewHelper extends AbstractConditionViewHelper
|
|
{
|
|
public static function verdict(array $arguments, RenderingContextInterface $renderingContext): bool
|
|
{
|
|
return Environment::getContext()->isProduction();
|
|
}
|
|
}
|