Created
October 11, 2016 08:35
-
-
Save bratsun/93fd60631f41ea09fb08b608e1b33c34 to your computer and use it in GitHub Desktop.
Check if field value is true and add optional class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if item.content['#block_content'].field_image_right.value == '1' %} | |
{% set options = options|merge(['image-right']) %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment