PHP Class FluidTYPO3\Vhs\ViewHelpers\Condition\Page\HasSubpagesViewHelper

A condition ViewHelper which renders the then child if current page or page with provided UID has subpages. By default disabled subpages are considered non existent which can be overridden by setting $includeHidden to TRUE. To include pages that are hidden in menus set $showHiddenInMenu to TRUE.
Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper, use trait FluidTYPO3\Vhs\Traits\ConditionViewHelperTrait
Show file Open project: fluidtypo3/vhs

Protected Properties

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

Public Methods

Method Description
initializeArguments ( ) Initialize arguments
setPageService ( PageService $pageService ) : void

Protected Methods

Method Description
evaluateCondition ( array $arguments = null ) : boolean

Method Details

evaluateCondition() protected static method

protected static evaluateCondition ( array $arguments = null ) : boolean
$arguments array
return boolean

initializeArguments() public method

Initialize arguments
public initializeArguments ( )

setPageService() public static method

public static setPageService ( PageService $pageService ) : void
$pageService FluidTYPO3\Vhs\Service\PageService
return void

Property Details

$pageService protected static property

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