PHP Class FluidTYPO3\Vhs\ViewHelpers\Format\SanitizeStringViewHelper

The built-in character map can be overriden or extended by providing an associative array of custom mappings. Also useful when creating anchor link names, for example for news entries in your custom EXT:news list template, in which case each news item's title would become an anchor: And links would look much like the detail view links: news/#this-is-a-newsitem-title When used with list views it has the added benefit of not breaking if the item referenced is removed, it can be read by Javascript (for example to dynamically expand the news item being referenced). The sanitized urls are also ideal to use for AJAX based detail views - and in almot all cases the sanitized string will be 100% identical to the one used by Realurl when translating using table lookups.
Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper, use trait FluidTYPO3\Vhs\Traits\DefaultRenderMethodViewHelperTrait
Datei anzeigen Open project: fluidtypo3/vhs

Protected Properties

Property Type Description
$characterMap array Basic character map

Public Methods

Method Description
initializeArguments ( ) : void Initialize
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed

Method Details

initializeArguments() public method

Initialize
public initializeArguments ( ) : void
return void

renderStatic() public static method

public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed
$arguments array
$renderChildrenClosure Closure
$renderingContext TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface
return mixed

Property Details

$characterMap protected_oe static_oe property

Basic character map
protected static array $characterMap
return array