PHP Class FluidTYPO3\Vhs\ViewHelpers\Page\LinkViewHelper

Viewhelper for rendering page links This viewhelper behaves identically to Fluid's link viewhelper except for it fetches the title of the provided page UID and inserts it as linktext if that is omitted. The link will not render at all if the requested page is not translated in the current language. Automatic linktext: Manual linktext: linktext
Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper, use trait FluidTYPO3\Vhs\Traits\PageRecordViewHelperTrait, use trait FluidTYPO3\Vhs\Traits\TemplateVariableViewHelperTrait
Datei anzeigen Open project: fluidtypo3/vhs

Protected Properties

Property Type Description
$pageService FluidTYPO3\Vhs\Service\PageService
$tagName string

Public Methods

Method Description
initializeArguments ( ) : void Arguments initialization
injectPageService ( PageService $pageService )
render ( ) : null | string Render method

Private Methods

Method Description
getTitleValue ( array $record ) : string

Method Details

initializeArguments() public method

Arguments initialization
public initializeArguments ( ) : void
return void

injectPageService() public method

public injectPageService ( PageService $pageService )
$pageService FluidTYPO3\Vhs\Service\PageService

render() public method

Render method
public render ( ) : null | string
return null | string

Property Details

$pageService protected_oe property

protected PageService,FluidTYPO3\Vhs\Service $pageService
return FluidTYPO3\Vhs\Service\PageService

$tagName protected_oe property

protected string $tagName
return string