ew_base/Classes/ViewHelpers/Context/DevelopmentViewHelper.php
2024-05-25 16:24:24 +02:00

26 lines
728 B
PHP
Executable File

<?php
/*
* 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\ViewHelper\AbstractConditionViewHelper;
class DevelopmentViewHelper extends AbstractConditionViewHelper
{
protected static function evaluateCondition($arguments = null): bool
{
return Environment::getContext()->isDevelopment();
}
}