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

debug() protected method

protected debug ( ) : mixed
return mixed
    protected function debug()
    {
        $settings = $this->getSettings();
        $debugOutputEnabled = $this->assertDebugEnabled();
        $useDebugUtility = !isset($settings['useDebugUtility']) || isset($settings['useDebugUtility']) && $settings['useDebugUtility'];
        $debugInformation = $this->getDebugInformation();
        if ($debugOutputEnabled) {
            if ($useDebugUtility) {
                DebuggerUtility::var_dump($debugInformation);
                return '';
            } else {
                return var_export($debugInformation, true);
            }
        }
    }