SlugNormalizer

final readonly class \TYPO3\CMS\Core\Slug\SlugNormalizer

Provides the ability to normalize a value to be used as url-part segment.

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
normalize()  : string
Normalizes a value to be used directly as path segment of a URL.

Methods

normalize()

Normalizes a value to be used directly as path segment of a URL.

public normalize(string $value[, string|null $fallbackCharacter = '-' ]) : string

Parameters

$value : string
$fallbackCharacter : string|null = '-'

Return values

string
On this page