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.
QuickTwig is a tool for theme developers to quickly override Twig template files. Instead of searching through Twig debug markup and manually copying and renaming files to your theme folder, you can easily access QuickTwig on the toolbar, which will open an off-canvas dialog on the page. Select a theme hook, source template and new template filename (based on the file name suggestions listed in the HTML comments), and QuickTwig will copy the Twig template to your current theme.
Requirements
Twig debugging must be enabled in sites/default/services.yml to use QuickTwig.
Limitations and TODO
- Currently doesn't work for any internal admin pages and any authenticated content
- Ability to enter custom template filename
- Ability to select destination templates directory
- Add Tests
- Other ideas?
Project information
- Module categories: Administration Tools, Developer Tools
- 6 sites report using this module
- Created by dystopianblue on , updated
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.