SlugNormalizer

Read onlyYes
FinalYes

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

Internal

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

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

Search results