PaddingViewHelper

final class \TYPO3\CMS\Fluid\ViewHelpers\Format\PaddingViewHelper

Extends
AbstractViewHelper

ViewHelper to format a string to specific lengths, by using PHPs `str_pad` function.

  <f:format.padding padLength="10" padString="!" padType="right">TYPO3</f:format.padding>

Tags

see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-format-padding
see
https://www.php.net/manual/en/function.str-pad

Table of Contents

Properties

$escapeChildren  : bool
Output is escaped already. We must not escape children, to avoid double encoding.

Methods

getContentArgumentName()  : string
Explicitly set argument name to be used as content.
initializeArguments()  : void
render()  : string
Pad a string to a certain length with another string.

Properties

$escapeChildren

Output is escaped already. We must not escape children, to avoid double encoding.

protected bool $escapeChildren = false

Methods

getContentArgumentName()

Explicitly set argument name to be used as content.

public getContentArgumentName() : string

Return values

string

initializeArguments()

public initializeArguments() : void

render()

Pad a string to a certain length with another string.

public render() : string

Return values

string
On this page