‪TYPO3CMS  9.5
TYPO3\CMS\Form\ViewHelpers\Be\RenderContentElementPreviewViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Form\ViewHelpers\Be\RenderContentElementPreviewViewHelper:

Public Member Functions

 initializeArguments ()
 

Static Public Member Functions

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

Protected Attributes

bool $escapeOutput = false
 

Detailed Description

Used by the form editor. Render a content element preview like the page module

Scope: backend

Definition at line 32 of file RenderContentElementPreviewViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Form\ViewHelpers\Be\RenderContentElementPreviewViewHelper::initializeArguments ( )

Initialize arguments.

Definition at line 46 of file RenderContentElementPreviewViewHelper.php.

◆ renderStatic()

static string TYPO3\CMS\Form\ViewHelpers\Be\RenderContentElementPreviewViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static
Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
‪string

Definition at line 58 of file RenderContentElementPreviewViewHelper.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getRecord().

Member Data Documentation

◆ $escapeOutput

bool TYPO3\CMS\Form\ViewHelpers\Be\RenderContentElementPreviewViewHelper::$escapeOutput = false
protected

As this ViewHelper renders HTML, the output must not be escaped.

Definition at line 39 of file RenderContentElementPreviewViewHelper.php.