PHP Interface Neos\Neos\Domain\Service\ContentDimensionPresetSourceInterface
It allows to resolve a Content Dimension Preset for a given dimension and urlSegment or find a matching
preset for a list of dimension values.
Content Dimension Preset
========================
A Content Dimension Preset assigns an identifier to a list of dimension values. It has UI properties for a label and
icon and further options for routing.
The default implementation ConfigurationContentDimensionPresetSource will read the available presets from settings.
显示文件
Open project: neos/neos-development-collection
Interface Usage Examples
Public Methods
Method Details
findPresetByUriSegment()
public method
Find a dimension preset by URI identifier
public findPresetByUriSegment ( string $dimensionName, string $uriSegment ) : array |
$dimensionName |
string |
The dimension name where the preset should be searched |
$uriSegment |
string |
The URI segment for a Content Dimension Preset |
return |
array |
The preset configuration, including the identifier as key "identifier" or NULL if none was found |