Skip to content

Instantly share code, notes, and snippets.


KenKodz KenKodz

View GitHub Profile
KenKodz /
Created September 8, 2021 18:44 — forked from raphaellarrinaga/
[Drupal 8 Twig cheatsheet] #tags: drupal8, twig, cheatsheet

Drupal 8 Twig cheatsheet

Please note I created that sheet as a personal side note/draft and not everything is fully tested. There could be errors or better things to do. So if you spot something wrong or something that can be improved, feel free to comment below and I will do the changes.

Getting Drupal 8 field values in Twig

Image path: {{ file_url(content.field_name['#items'].entity.uri.value) }}

KenKodz /
Last active March 5, 2017 17:30

Keybase proof

I hereby claim:

  • I am KenLewis on github.
  • I am kenlewis ( on keybase.
  • I have a public key whose fingerprint is E780 5319 2D07 57A6 B310 5BA4 6036 CA2C 8DB8 C7D8

To claim this, I am signing this object: