FluidTYPO3\Vhs\ViewHelpers\Asset\AbstractAssetViewHelper::assertDebugEnabled PHP Method

assertDebugEnabled() public method

Returns TRUE if the current Asset should be debugged as commanded by settings in TypoScript an/ord ViewHelper attributes.
public assertDebugEnabled ( ) : boolean
return boolean
    public function assertDebugEnabled()
    {
        $settings = $this->getSettings();
        if (isset($settings['debug']) && $settings['debug']) {
            return true;
        }
        $settings = $this->getAssetSettings();
        if (isset($settings['asset']['debug']) && $settings['asset']['debug'] > 0) {
            return true;
        }
        return false;
    }