\Symfony\Component\String\SluggerSluggerInterface

Creates a URL-friendly slug from a given string.

Summary

Methods
Constants
slug()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

slug()

slug(string  $string, string  $separator = '-', string  $locale = null) : \Symfony\Component\String\AbstractUnicodeString

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

Parameters

string $string
string $separator
string $locale

Returns

\Symfony\Component\String\AbstractUnicodeString —