ui_patterns icon indicating copy to clipboard operation
ui_patterns copied to clipboard

How to tell if in library preview mode from Twig template?

Open peterhebert opened this issue 3 years ago • 0 comments

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?

peterhebert avatar Jan 12 '22 22:01 peterhebert