Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Very simple module that provides a new Twig filter to create a slug from a string in a template.

Requirements

Install Composer

Usage

  • Require the module with Composer (or install Composer Manager module and run composer drupal-update, so Composer can install dependencies)
  • Enable the module
  • Use in your template : content.foo | slugify

Disclamer

This module is a quick-and-dirty implementation of Cocur's Slugify project that I needed for my current client project. It can obviously be improved and lacks tests, but can also be incredibly helpful if you don't need anything fancier than a slug filter.

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • Created by superbiche on , updated