Drupal 8 Theming - Part 13 - Kint, Arrays, Twig, Foreach, If
Автор: Watch and Learn
Загружено: 2015-11-29
Просмотров: 23988
In this episode of Drupal 8 Theming I'm going to show you a lot of stuff - how to work with Kint, how to print out data, how to make if statements with Twig and much more.
Kint is a debugger tool for Drupal, with it we can inspect all the data that is coming to our node, page, block or any other other type of content. With it we can see how we can accesses data that is coming to us from Drupal.
Of course, when we can see our data, we can then manipulate it. In this video I will show you how you can display values from your fields by using *foreach* loop, and also how you can prevent something from being displayed depending on user input.
Code used in this tutorial
https://github.com/ivandoric/d8themin...
http://watch-learn.com/video-tutorial...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: