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 tell if in library preview mode from Twig template? #339

Open peterhebert opened 2 years ago

peterhebert commented 2 years ago

I am using the submodule for the patern library, and was wondering how I would be able to do a conditional to test if in preview display in the pattern library. I'd like to use custom markup here, beyond what the 'preview' for a certain field.

Is there a way to determine this? a boolean variable for preview perhaps?