interface SluggerInterface

Creates a URL-friendly slug from a given string.

Methods

AbstractUnicodeString
slug(string$string,string$separator ='-',string$locale =null)

Creates a slug for the given string and locale, using appropriate transliteration when needed.

Details

AbstractUnicodeString slug(string$string,string$separator ='-',string$locale =null)

Creates a slug for the given string and locale, using appropriate transliteration when needed.

Parameters

string $string
string $separator
string $locale

Return Value

AbstractUnicodeString