Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SluggerInterface.php

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\Slugger
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal