yireo / shopware6-add-twig-template-name
Shopware 6 plugin to add the template name to all Twig templates
Package info
github.com/yireo-shopware6/shopware6-add-twig-template-name
Type:shopware-platform-plugin
pkg:composer/yireo/shopware6-add-twig-template-name
0.0.1
2021-05-16 13:38 UTC
This package is auto-updated.
Last update: 2026-03-10 15:07:37 UTC
README
DEPRECATED: Use https://github.com/FriendsOfShopware/FroshDevelopmentHelper instead
This plugin adds - once enabled - comments in the HTML document with the names of Twig templates. For example:
<!-- @Storefront/storefront/base.html.twig --><!DOCTYPE html> <!-- @Storefront/storefront/base.html.twig --><html lang="en-GB" itemscope="itemscope" itemtype="https://schema.org/WebPage">
Usage
composer require yireo/shopware6-add-twig-template-name bin/console plugin:refresh bin/console plugin:install --activate YireoAddTwigTemplateName bin/console cache:clear
Disclaimer
The majority of the code of this plugin was proudfully borrowed from the awesome oroinc/twig-inspector. A Shopware plugin for that tool is in the works too: yireo-shopware6/shopware6-twig-inspector