function SluggerInterface::slug
Creates a slug for the given string and locale, using appropriate transliteration when needed.
1 method overrides SluggerInterface::slug()
- AsciiSlugger::slug in vendor/
symfony/ string/ Slugger/ AsciiSlugger.php - Creates a slug for the given string and locale, using appropriate transliteration when needed.
File
-
vendor/
symfony/ string/ Slugger/ SluggerInterface.php, line 26
Class
- SluggerInterface
- Creates a URL-friendly slug from a given string.
Namespace
Symfony\Component\String\SluggerCode
public function slug(string $string, string $separator = '-', ?string $locale = null) : AbstractUnicodeString;