ui_patterns
ui_patterns copied to clipboard
How to tell if in library preview mode from Twig template?
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?