PagePathRenderer
readonly class \
Renders the path of a page as text or HTML, for example "/Home/About us/", the way the backend shows the location of a page or record in the page tree.
Templates use the be:pagePath ViewHelper instead.
Internal
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Methods
- renderHtml() : string
- Returns the path as HTML, the page titles and the separator escaped.
- renderText() : string
- Returns the path as plain text, which has to be escaped for HTML output.
Methods
renderHtml()
Returns the path as HTML, the page titles and the separator escaped.
public
renderHtml(PagePath $path[, int $titleLimit = 0 ][, string $separator = '/' ]) : string
Parameters
- $path : PagePath
- $titleLimit : int = 0
-
Maximum number of characters of each page title, 0 for no limit
- $separator : string = '/'
Return values
stringrenderText()
Returns the path as plain text, which has to be escaped for HTML output.
public
renderText(PagePath $path[, int $titleLimit = 0 ]) : string
Parameters
- $path : PagePath
- $titleLimit : int = 0
-
Maximum number of characters of each page title, 0 for no limit