Свойство | Тип | Описание | |
---|---|---|---|
$contentDimensionPresetSource | Neos\Neos\Domain\Service\ContentDimensionPresetSourceInterface | ||
$contextFactory | |||
$domainRepository | |||
$securityContext | |||
$siteRepository | |||
$supportEmptySegmentForDimensions | boolean | ||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface |
Метод | Описание | |
---|---|---|
buildContextFromPath ( string $path, boolean $convertLiveDimensions ) : |
Creates a content context from the given "context path", i.e. a string used for _resolving_ (not matching) a node. | |
buildContextFromRequestPath ( &$requestPath ) : |
Creates a content context from the given request path, considering possibly mentioned content dimension values. | |
buildContextFromWorkspaceName ( string $workspaceName, array $dimensions = null ) : |
||
buildContextFromWorkspaceNameAndDimensions ( string $workspaceName, array $dimensionsAndDimensionValues ) : |
Sets context properties like "invisibleContentShown" according to the workspace (live or not) and returns a ContentContext object. | |
convertRequestPathToNode ( string $requestPath ) : Neos\ContentRepository\Domain\Model\NodeInterface | Returns the initialized node that is referenced by $requestPath, based on the node's "uriPathSegment" property. | |
findValueToMatch ( string $requestPath ) : string | Extracts the node path from the request path. | |
getRelativeNodePathByUriPathSegmentProperties ( Neos\ContentRepository\Domain\Model\NodeInterface $siteNode, string $relativeRequestPath ) : string | Builds a node path which matches the given request path. | |
getRequestPathByNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : string | Renders a request path based on the "uriPathSegment" properties of the nodes leading to the given node. | |
getUriSegmentForDimensions ( array $dimensionsValues, boolean $currentNodeIsSiteNode ) : string | Find a URI segment in the content dimension presets for the given "language" dimension values | |
matchValue ( string $requestPath ) : boolean | Matches a frontend URI pointing to a node (for example a page). | |
onlyMatchSiteNodes ( ) : boolean | Whether the current route part should only match/resolve site nodes (e.g. the homepage) | |
parseDimensionsAndNodePathFromRequestPath ( &$requestPath ) : array | Choose between default method for parsing dimensions or the one which allows uriSegment to be empty for default preset. | |
parseDimensionsAndNodePathFromRequestPathAllowingEmptySegment ( &$requestPath ) : array | Parses the given request path and checks if the first path segment is one or a set of content dimension preset identifiers. If that is the case, the return value is an array of dimension names and their preset URI segments. | |
parseDimensionsAndNodePathFromRequestPathAllowingNonUniqueSegment ( &$requestPath ) : array | Parses the given request path and checks if the first path segment is one or a set of content dimension preset identifiers. If that is the case, the return value is an array of dimension names and their preset URI segments. | |
removeContextFromPath ( string $path ) : string | ||
resolveRoutePathForNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : string | Resolves the request path, also known as route path, identifying the given node. | |
resolveValue ( mixed $node ) : boolean | Checks, whether given value is a Node object and if so, sets $this->value to the respective node path. |
protected buildContextFromPath ( string $path, boolean $convertLiveDimensions ) : |
||
$path | string | a path containing the context, such as /sites/examplecom/home@user-johndoe or /assets/pictures/my-picture or /assets/pictures/my-picture@user-john;language=de&country=global |
$convertLiveDimensions | boolean | Whether to parse dimensions from the context path in a non-live workspace |
Результат | based on the specified path; only evaluating the context information (i.e. everything after "@") |
protected buildContextFromRequestPath ( &$requestPath ) : |
||
Результат | The built content context |
protected buildContextFromWorkspaceName ( string $workspaceName, array $dimensions = null ) : |
||
$workspaceName | string | |
$dimensions | array | |
Результат |
protected buildContextFromWorkspaceNameAndDimensions ( string $workspaceName, array $dimensionsAndDimensionValues ) : |
||
$workspaceName | string | Name of the workspace to use in the context |
$dimensionsAndDimensionValues | array | An array of dimension names (index) and their values (array of strings). See also: ContextFactory |
Результат |
protected convertRequestPathToNode ( string $requestPath ) : Neos\ContentRepository\Domain\Model\NodeInterface | ||
$requestPath | string | The request path, for example /the/node/path@some-workspace |
Результат | Neos\ContentRepository\Domain\Model\NodeInterface |
protected findValueToMatch ( string $requestPath ) : string | ||
$requestPath | string | The request path to be matched |
Результат | string | value to match, or an empty string if $requestPath is empty or split string was not found |
protected getRelativeNodePathByUriPathSegmentProperties ( Neos\ContentRepository\Domain\Model\NodeInterface $siteNode, string $relativeRequestPath ) : string | ||
$siteNode | Neos\ContentRepository\Domain\Model\NodeInterface | The site node, used as a starting point while traversing the tree |
$relativeRequestPath | string | The request path, relative to the site's root path |
Результат | string |
protected getRequestPathByNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : string | ||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node where the generated path should lead to |
Результат | string | A relative request path |
protected matchValue ( string $requestPath ) : boolean | ||
$requestPath | string | The request path (without leading "/", relative to the current Site Node) |
Результат | boolean | true if the $requestPath could be matched, otherwise false |
protected onlyMatchSiteNodes ( ) : boolean | ||
Результат | boolean |
protected parseDimensionsAndNodePathFromRequestPath ( &$requestPath ) : array | ||
Результат | array | An array of dimension name => dimension values (array of string) |
protected parseDimensionsAndNodePathFromRequestPathAllowingEmptySegment ( &$requestPath ) : array | ||
Результат | array | An array of dimension name => dimension values (array of string) |
protected parseDimensionsAndNodePathFromRequestPathAllowingNonUniqueSegment ( &$requestPath ) : array | ||
Результат | array | An array of dimension name => dimension values (array of string) |
protected removeContextFromPath ( string $path ) : string | ||
$path | string | an absolute or relative node path which possibly contains context information, for example "/sites/somesite/the/node/path@some-workspace" |
Результат | string | the same path without context information |
protected resolveRoutePathForNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : string | ||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node where the generated path should lead to |
Результат | string | The relative route path, possibly prefixed with a segment for identifying the current content dimension values |
protected resolveValue ( mixed $node ) : boolean | ||
$node | mixed | Either a Node object or an absolute context node path |
Результат | boolean | true if value could be resolved successfully, otherwise false. |
protected ContentDimensionPresetSourceInterface,Neos\Neos\Domain\Service $contentDimensionPresetSource | ||
Результат | Neos\Neos\Domain\Service\ContentDimensionPresetSourceInterface |
protected ContentContextFactory,Neos\Neos\Domain\Service $contextFactory | ||
Результат |
protected DomainRepository,Neos\Neos\Domain\Repository $domainRepository | ||
Результат |
protected Context,Neos\Flow\Security $securityContext | ||
Результат |
protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository | ||
Результат |
protected bool $supportEmptySegmentForDimensions | ||
Результат | boolean |