Drupal 8 theming Episode 8

Creating Partials

In this episode of Drupal 8 Theming tutorial series we are going to learn how to make our theme a bit more flexible by creating and calling partials.

Partials are a small bits of code that you can reuse all over your theme. If you watched the Buildng Sites With Middleman Series you already know what partials are.

Common use for them is creating separate files for header and footer, so when you do some changes on them you don’t have to do it on multiple files, but instead you change just one file and those changes would be visible on any template that is calling that partial.

Wanna ask a question about video?

Like This Video?

Support it by sharing it ;)

© Watch And Learn,2024