PHP Class Neos\Neos\Utility\NodeUriPathSegmentGenerator

显示文件 Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$transliterationService Neos\Neos\Service\TransliterationService

Public Methods

Method Description
generateUriPathSegment ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null, string $text = null ) : string Generates a URI path segment for a given node taking it's language dimension into account
setUniqueUriPathSegment ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Sets the best possible uriPathSegment for the given Node.

Method Details

generateUriPathSegment() public method

Generates a URI path segment for a given node taking it's language dimension into account
public generateUriPathSegment ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null, string $text = null ) : string
$node Neos\ContentRepository\Domain\Model\NodeInterface Optional node to determine language dimension
$text string Optional text
return string

setUniqueUriPathSegment() public static method

Will use an already set uriPathSegment or alternatively the node name as base, then checks if the uriPathSegment already exists on the same level and appends a counter until a unique path segment was found.
public static setUniqueUriPathSegment ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
return void

Property Details

$transliterationService protected_oe property

protected TransliterationService,Neos\Neos\Service $transliterationService
return Neos\Neos\Service\TransliterationService