PagePathViewHelper extends AbstractBackendViewHelper

ViewHelper which returns the current page path as known from TYPO3 backend modules.

.. note:: This ViewHelper is experimental!

Examples

Default::

<f:be.pagePath />

Current page path, prefixed with "Path:" and wrapped in a span with the class typo3-docheader-pagePath.

Table of Contents

Properties

$escapeOutput  : bool
This ViewHelper renders HTML, thus output must not be escaped

Methods

getModuleTemplate()  : ModuleTemplate
Gets instance of template if exists or create a new one.
getPageRenderer()  : PageRenderer
Gets instance of PageRenderer if exists or create a new one.
render()  : string
Renders the current page path
renderStatic()  : string
getLanguageService()  : LanguageService|null

Properties

$escapeOutput

This ViewHelper renders HTML, thus output must not be escaped

protected bool $escapeOutput = false

Methods

getModuleTemplate()

Gets instance of template if exists or create a new one.

public getModuleTemplate() : ModuleTemplate

Saves instance in viewHelperVariableContainer

Return values
ModuleTemplate

getPageRenderer()

Gets instance of PageRenderer if exists or create a new one.

public getPageRenderer() : PageRenderer

Saves instance in viewHelperVariableContainer

Return values
PageRenderer

render()

Renders the current page path

public render() : string
Return values
string

the rendered page path

renderStatic()

public static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
$arguments : array<string|int, mixed>
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface
Return values
string

        
On this page

Search results