PHP 클래스 Neos\Neos\TypoScript\DimensionsMenuImplementation

The items generated by this menu will be all possible variants (according to the configured dimensions and presets) of the given node (including the given node). If a 'dimension' is configured via TypoScript, only the possible variants for that dimension will be included in the menu, any other dimensions will be kept from the current context. Main Options: - dimension (optional, string): name of the dimension which this menu should be limited to. Example: "language". - presets (optional, array): If set, the presets are not loaded from the Settings, but instead taken from this property. Must be used with "dimension" set.
상속: extends AbstractMenuImplementation
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$configurationContentDimensionPresetSource Neos\Neos\Domain\Service\ConfigurationContentDimensionPresetSource
$contentDimensionCombinator Neos\ContentRepository\Domain\Service\ContentDimensionCombinator

공개 메소드들

메소드 설명
getDimension ( ) : string
getIncludeAllPresets ( ) : array
getPresets ( ) : array

보호된 메소드들

메소드 설명
buildItems ( ) Builds the array of Menu items for this variant menu
calculateTargetDimensionsForCombination ( array $dimensionCombination ) : array Calculates the target dimensions for a given dimension combination.
findAcceptableNode ( array $allowedCombination, array $allDimensionPresets ) : null | Neos\ContentRepository\Domain\Model\NodeInterface
getNodeInDimensions ( array $dimensions, array $targetDimensions ) : Neos\ContentRepository\Domain\Model\NodeInterface | null Get the current node in the given dimensions.

메소드 상세

buildItems() 보호된 메소드

Builds the array of Menu items for this variant menu
protected buildItems ( )

calculateTargetDimensionsForCombination() 보호된 메소드

Calculates the target dimensions for a given dimension combination.
protected calculateTargetDimensionsForCombination ( array $dimensionCombination ) : array
$dimensionCombination array
리턴 array

findAcceptableNode() 보호된 메소드

protected findAcceptableNode ( array $allowedCombination, array $allDimensionPresets ) : null | Neos\ContentRepository\Domain\Model\NodeInterface
$allowedCombination array
$allDimensionPresets array
리턴 null | Neos\ContentRepository\Domain\Model\NodeInterface

getDimension() 공개 메소드

public getDimension ( ) : string
리턴 string

getIncludeAllPresets() 공개 메소드

public getIncludeAllPresets ( ) : array
리턴 array

getNodeInDimensions() 보호된 메소드

If it doesn't exist the method returns null.
protected getNodeInDimensions ( array $dimensions, array $targetDimensions ) : Neos\ContentRepository\Domain\Model\NodeInterface | null
$dimensions array
$targetDimensions array
리턴 Neos\ContentRepository\Domain\Model\NodeInterface | null

getPresets() 공개 메소드

public getPresets ( ) : array
리턴 array

프로퍼티 상세

$configurationContentDimensionPresetSource 보호되어 있는 프로퍼티

protected ConfigurationContentDimensionPresetSource,Neos\Neos\Domain\Service $configurationContentDimensionPresetSource
리턴 Neos\Neos\Domain\Service\ConfigurationContentDimensionPresetSource

$contentDimensionCombinator 보호되어 있는 프로퍼티

protected ContentDimensionCombinator,Neos\ContentRepository\Domain\Service $contentDimensionCombinator
리턴 Neos\ContentRepository\Domain\Service\ContentDimensionCombinator