Documentation

SluggerInterface

Creates a URL-friendly slug from a given string.

Tags
author

Titouan Galopin galopintitouan@gmail.com

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
Return values
AbstractUnicodeString

        
On this page

Search results