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

Breadcrumb

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

function SluggerInterface::slug

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

1 method overrides SluggerInterface::slug()
AsciiSlugger::slug in vendor/symfony/string/Slugger/AsciiSlugger.php
Creates a slug for the given string and locale, using appropriate transliteration when needed.

File

vendor/symfony/string/Slugger/SluggerInterface.php, line 26

Class

SluggerInterface
Creates a URL-friendly slug from a given string.

Namespace

Symfony\Component\String\Slugger

Code

public function slug(string $string, string $separator = '-', ?string $locale = null) : AbstractUnicodeString;

API Navigation

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