Skip to main content
Mediacurrent logo
Hero Background Image


Learning Bits: Twig Blocks

by Mario Hernandez
October 5, 2020

Twig Blocks are very useful if you are a Drupal developer. They are used for inheritance and act as placeholders and replacements at the same time. However, they can be confusing in part because as a Drupal developer the first thing one thinks when they hear “Block”, is Drupal blocks. Twig blocks are not related in any way to Drupal blocks. 

In this tutorial, we cover what Twig blocks are and how you can take advantage of them while doing front-end or back-end Drupal development.

Mediacurrent Learning Bits

Join us every week for new tutorials on Front-End Development, Back-End Development, Drupal, Accessibility, and more! Subscribe to our YouTube channel to get alerts for new tutorials.

Interested in Training?

Learn more about Mediacurrent's training services and how we can help your team level up. Our team of Drupal and open source experts who partner with some of the world's most recognized brands can help your entire team drive measurable success through quality training.

Mario Hernandez

Meet team member, Mario Hernandez

Mario is the Head of Learning at Mediacurrent with over 10 years of public speaking and training experience. He is a regular speaker and trainer at tech conferences including Drupal Camps in Los Angeles, San Diego, San Francisco, Washington DC, and others.  Mario is a co-host of the Mediacurrent podcast where guest speakers discuss open source solutions.

In addition to being the Head of Learning, Mario is a Senior Front-End Developer working on some of the world’s most popular brands. Mario has vast experience in all things Front End as well as Drupal.  He developed the very successful Component-Based Development training workshop which has been conducted at DrupalCons throughout America and Europe. Mario's strengths are training clients and their development teams through custom-tailored curriculums.

Learn more about Mario >