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

Releases