PHP Class FluidTYPO3\Vhs\ViewHelpers\Format\Placeholder\LipsumViewHelper

Renders Lorem Ipsum text according to provided arguments.
Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
Mostrar archivo Open project: fluidtypo3/vhs

Protected Properties

Property Type Description
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
$contentObject TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
$lipsum string

Public Methods

Method Description
initialize ( ) : void
initializeArguments ( ) Initialize arguments
injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
render ( string $lipsum = null ) : string Renders Lorem Ipsum paragraphs. If $lipsum is provided it will be used as source text. If not provided as an argument or as inline argument, $lipsum is fetched from TypoScript settings.

Protected Methods

Method Description
getDefaultLoremIpsum ( ) : string Get the default Lorem Ipsum. The compressed block (which is of course cleaned thoroughly to avoid any injection) contains 20 full paragraphs of Lorem Ipsum in standard latin. No bells and whistles there.

Method Details

getDefaultLoremIpsum() protected method

Get the default Lorem Ipsum. The compressed block (which is of course cleaned thoroughly to avoid any injection) contains 20 full paragraphs of Lorem Ipsum in standard latin. No bells and whistles there.
protected getDefaultLoremIpsum ( ) : string
return string

initialize() public method

public initialize ( ) : void
return void

initializeArguments() public method

Initialize arguments
public initializeArguments ( )

injectConfigurationManager() public method

public injectConfigurationManager ( TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager ) : void
$configurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
return void

render() public method

Renders Lorem Ipsum paragraphs. If $lipsum is provided it will be used as source text. If not provided as an argument or as inline argument, $lipsum is fetched from TypoScript settings.
public render ( string $lipsum = null ) : string
$lipsum string String of paragraphs file path or EXT:myext/path/to/file
return string

Property Details

$configurationManager protected_oe property

protected ConfigurationManagerInterface,TYPO3\CMS\Extbase\Configuration $configurationManager
return TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface

$contentObject protected_oe property

protected ContentObjectRenderer,TYPO3\CMS\Frontend\ContentObject $contentObject
return TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer

$lipsum protected_oe property

protected string $lipsum
return string