📜  在 twig shopware 6 中添加一个片段 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:51.035000             🧑  作者: Mango

代码示例1
First you have to add the snippets in the admin panel: 
Setting->Snippets

After you add the name of the snippet in the twig file
{{ 'nameOfTheSnippetFromBackend'|trans|sw_sanitize }}