‪TYPO3CMS  9.5
TYPO3\CMS\Fluid\ViewHelpers\Be\PagePathViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Be\PagePathViewHelper:
TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper

Public Member Functions

string render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper
DocumentTemplate getDocInstance ()
 
PageRenderer getPageRenderer ()
 

Static Public Member Functions

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

Protected Attributes

bool $escapeOutput = false
 

Detailed Description

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.

Definition at line 37 of file PagePathViewHelper.php.

Member Function Documentation

◆ render()

string TYPO3\CMS\Fluid\ViewHelpers\Be\PagePathViewHelper::render ( )

Renders the current page path

Returns
‪string the rendered page path
See also
‪\TYPO3\CMS\Backend\Template\DocumentTemplate::getPagePath() Note: can't call this method as it's protected!

Definition at line 52 of file PagePathViewHelper.php.

◆ renderStatic()

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

Definition at line 68 of file PagePathViewHelper.php.

References $GLOBALS, TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW, and TYPO3\CMS\Backend\Utility\BackendUtility\readPageAccess().

Member Data Documentation

◆ $escapeOutput

bool TYPO3\CMS\Fluid\ViewHelpers\Be\PagePathViewHelper::$escapeOutput = false
protected

This ViewHelper renders HTML, thus output must not be escaped

Definition at line 44 of file PagePathViewHelper.php.