PHP Class Neos\Neos\Utility\NodeUriPathSegmentGenerator

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$transliterationService Neos\Neos\Service\TransliterationService

Méthodes publiques

Méthode 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 méthode

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
Résultat string

setUniqueUriPathSegment() public static méthode

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
Résultat void

Property Details

$transliterationService protected_oe property

protected TransliterationService,Neos\Neos\Service $transliterationService
Résultat Neos\Neos\Service\TransliterationService