Drupal 8 theming Episode 13

Kint, Arrays, Twig, Foreach, If

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.

Wanna ask a question about video?

Like This Video?

Support it by sharing it ;)

© Watch And Learn,2024