22 lines
581 B
PHP
Executable File
22 lines
581 B
PHP
Executable File
<?php
|
|
|
|
namespace Evoweb\EwBase\ViewHelpers\Context;
|
|
|
|
/*
|
|
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
|
|
*
|
|
* For the full copyright and license information, please read the
|
|
* LICENSE.md file that was distributed with this source code.
|
|
*/
|
|
|
|
use TYPO3\CMS\Core\Core\Environment;
|
|
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper;
|
|
|
|
class ProductionViewHelper extends AbstractConditionViewHelper
|
|
{
|
|
protected static function evaluateCondition($arguments = null): bool
|
|
{
|
|
return Environment::getContext()->isProduction();
|
|
}
|
|
}
|