‪TYPO3CMS  9.5
TYPO3\CMS\Fluid\ViewHelpers\DebugViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\DebugViewHelper:

Public Member Functions

 initializeArguments ()
 

Static Public Member Functions

static string renderStatic (array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Protected Attributes

bool $escapeChildren = false
 
bool $escapeOutput = false
 

Detailed Description

This ViewHelper generates a HTML dump of the tagged variable.

Examples

Simple

::

<f:debug>{testVariables.array}</f:debug>

foobarbazfoo

All Features

::

<f:debug title="My Title" maxDepth="5" blacklistedClassNames="{0:'Tx_BlogExample_Domain_Model_Administrator'}" blacklistedPropertyNames="{0:'posts'}" plainText="true" ansiColors="false" inline="true" > {blogs} </f:debug>

[A HTML view of the var_dump]

Definition at line 53 of file DebugViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Fluid\ViewHelpers\DebugViewHelper::initializeArguments ( )

Initialize arguments.

Exceptions

Definition at line 73 of file DebugViewHelper.php.

◆ renderStatic()

static string TYPO3\CMS\Fluid\ViewHelpers\DebugViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

A wrapper for \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump().

Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
‪string

Definition at line 93 of file DebugViewHelper.php.

References TYPO3\CMS\Extbase\Utility\DebuggerUtility\var_dump().

Member Data Documentation

◆ $escapeChildren

bool TYPO3\CMS\Fluid\ViewHelpers\DebugViewHelper::$escapeChildren = false
protected

This prevents double escaping as the output is encoded in DebuggerUtility::var_dump

Definition at line 60 of file DebugViewHelper.php.

◆ $escapeOutput

bool TYPO3\CMS\Fluid\ViewHelpers\DebugViewHelper::$escapeOutput = false
protected

Output of this viewhelper is already escaped

Definition at line 66 of file DebugViewHelper.php.