interface SluggerInterface
Creates a URL-friendly slug from a given string.
@author Titouan Galopin <galopintitouan@gmail.com>
Hierarchy
- interface \Symfony\Component\String\Slugger\SluggerInterface
Expanded class hierarchy of SluggerInterface
All classes that implement SluggerInterface
File
-
vendor/
symfony/ string/ Slugger/ SluggerInterface.php, line 21
Namespace
Symfony\Component\String\SluggerView source
interface SluggerInterface {
/**
* Creates a slug for the given string and locale, using appropriate transliteration when needed.
*/
public function slug(string $string, string $separator = '-', ?string $locale = null) : AbstractUnicodeString;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
SluggerInterface::slug | public | function | Creates a slug for the given string and locale, using appropriate transliteration when needed. | 1 |