Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
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
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Created by superbiche on , updated