SlugNormalizer
Read onlyYes
FinalYes
Provides the ability to normalize a value to be used as url-part segment.
This class is still work in progress and subject of frequent change. Only use with caution.
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
__construct()
public
__construct(CharsetConverter $charsetConverter) : mixed
Parameters
- $charsetConverter : CharsetConverter
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 = '-'