ui_patterns icon indicating copy to clipboard operation
ui_patterns copied to clipboard

How to choose the variant when you use the twig "pattern" method

Open steveoriol opened this issue 4 years ago • 3 comments

How to choose the variant when you use the twig "pattern" method, I did not find in the documentation : https://ui-patterns.readthedocs.io/en/8.x-1.x/content/developer-documentation.html#render-patterns-using-twig-functions {{ pattern('button', {title: 'Link title', url: 'http://example.com'}) }}

Thank you very much for this great module! :-)

steveoriol avatar May 27 '21 08:05 steveoriol

{{ pattern('button', {title: 'Link title', url: 'http://example.com'}, 'your_variant') }}

christianwiedemann avatar May 27 '21 08:05 christianwiedemann

Thank you @christianwiedemann

steveoriol avatar May 30 '21 08:05 steveoriol

I think this issue can be closed.

I can't, I don't know how this repository is configured and who is allowed to close issue if only maintainers can.

FlorentTorregrosa avatar Jan 16 '22 16:01 FlorentTorregrosa