FluidTYPO3\Vhs\ViewHelpers\Extension\LoadedViewHelper::evaluateCondition PHP Method

evaluateCondition() protected static method

This method decides if the condition is TRUE or FALSE. It can be overriden in extending viewhelpers to adjust functionality.
protected static evaluateCondition ( array $arguments = null ) : boolean
$arguments array ViewHelper arguments to evaluate the condition for this ViewHelper, allows for flexiblity in overriding this method.
return boolean
    protected static function evaluateCondition($arguments = null)
    {
        $extensionName = $arguments['extensionName'];
        $extensionKey = GeneralUtility::camelCaseToLowerCaseUnderscored($extensionName);
        $isLoaded = ExtensionManagementUtility::isLoaded($extensionKey);
        return true === $isLoaded;
    }