PHP Класс Neos\Neos\Utility\NodeUriPathSegmentGenerator

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$transliterationService Neos\Neos\Service\TransliterationService

Открытые методы

Метод Описание
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.

Описание методов

generateUriPathSegment() публичный Метод

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
Результат string

setUniqueUriPathSegment() публичный статический Метод

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
Результат void

Описание свойств

$transliterationService защищенное свойство

protected TransliterationService,Neos\Neos\Service $transliterationService
Результат Neos\Neos\Service\TransliterationService