Created
February 8, 2017 19:12
-
-
Save backlineint/b1bc46316c47c90d0171682fdcc2e165 to your computer and use it in GitHub Desktop.
Twig Field Value Version of Card Mapping
This file contains 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
{% set catch_cache = content.field_image|render %} | |
{% include "@molecules/card/card.twig" | |
with { | |
"img_src": file_url(content.field_image|field_target_entity.uri.value), | |
"img_alt": content.field_image|field_raw('alt'), | |
"header": label|field_value, | |
"copy": content.body|field_value | |
} | |
%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment