ExampleViewHelper

final class \TYPO3\CMS\Styleguide\ViewHelpers\ExampleViewHelper

Extends
AbstractViewHelper

ViewHelper for rendering a code example.

   <sg:example codePreview="true" codeLanguage="html" customCode="{codeSnippet}" decodeEntities="true">your code</sg:example>

Table of Contents

Properties

$escapeChildren  : bool
$escapeOutput  : bool

Methods

__construct()  : mixed
initializeArguments()  : void
render()  : string

Properties

$escapeChildren

protected bool $escapeChildren = false

$escapeOutput

protected bool $escapeOutput = false

Methods

initializeArguments()

public initializeArguments() : void

render()

public render() : string

Return values

string
On this page