PHP Class FluidTYPO3\Vhs\ViewHelpers\System\UniqIdViewHelper

Returns a unique ID based on PHP's uniqid-function. Comes in useful when handling/generating html-element-IDs for usage with JavaScript.
Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
Datei anzeigen Open project: fluidtypo3/vhs

Public Methods

Method Description
render ( string $prefix = '', boolean $moreEntropy = false ) : string

Method Details

render() public method

public render ( string $prefix = '', boolean $moreEntropy = false ) : string
$prefix string An optional prefix for making sure it's unique across environments
$moreEntropy boolean Add some pseudo random strings. Refer to uniqid()'s Reference.
return string