DebugViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:debug>
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]
Table of Contents
Properties
- $escapeChildren : bool
- This prevents double escaping as the output is encoded in DebuggerUtility::var_dump
- $escapeOutput : bool
- Output of this viewhelper is already escaped
Methods
- initializeArguments() : mixed
- Initialize arguments.
- renderStatic() : string
- A wrapper for \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump().
Properties
$escapeChildren
This prevents double escaping as the output is encoded in DebuggerUtility::var_dump
protected
bool
$escapeChildren
= false
$escapeOutput
Output of this viewhelper is already escaped
protected
bool
$escapeOutput
= false
Methods
initializeArguments()
Initialize arguments.
public
initializeArguments() : mixed
Tags
renderStatic()
A wrapper for \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump().
public
static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
- $arguments : array<string|int, mixed>
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface