nuvoleweb / ui_patterns

[NOTE] Development has moved to https://drupal.org/project/ui_patterns
https://drupal.org/project/ui_patterns
GNU General Public License v2.0
85 stars 56 forks source link

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

Closed steveoriol closed 1 year ago

steveoriol commented 3 years ago

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! :-)

christianwiedemann commented 3 years ago

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

steveoriol commented 3 years ago

Thank you @christianwiedemann

FlorentTorregrosa commented 2 years ago

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.