ExampleViewHelper extends AbstractViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <.typo3.cms.styleguide.s.example>
FinalYes
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
__construct()
public
__construct(PageRenderer $pageRenderer, CodeEditor $codeEditor, ModeRegistry $modeRegistry) : mixed
Parameters
- $pageRenderer : PageRenderer
- $codeEditor : CodeEditor
- $modeRegistry : ModeRegistry
initializeArguments()
public
initializeArguments() : void
render()
public
render() : string