Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set image_position = field_collection_item.field_image_position.value is not empty ? field_collection_item.field_image_position.getSettings()['allowed_values'][field_collection_item.field_image_position.value]|lower|replace({' ': '-', '(': '', ')': ''}) %}
- {% set position = [
- image_position ? 'fill-pos',
- 'pos-' ~ image_position,
- ] %}
- <div{{ attributes.addClass(position) }}>
- <div class="content"{{ content_attributes }}>
- {{ content }}
- </div>
Add Comment
Please, Sign In to add comment