SluggerInterface
in
Creates a URL-friendly slug from a given string.
Tags
Table of Contents
Methods
- slug() : AbstractUnicodeString
- Creates a slug for the given string and locale, using appropriate transliteration when needed.
Methods
slug()
Creates a slug for the given string and locale, using appropriate transliteration when needed.
public
slug(string $string[, string $separator = '-' ][, string|null $locale = null ]) : AbstractUnicodeString
Parameters
- $string : string
- $separator : string = '-'
- $locale : string|null = null