PHP Класс Neos\Neos\Fusion\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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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