Mario Hernandez: Handling Drupal attributes in components

In Drupal's twig templates you'll often see an attributes variable being output within the template. This variable is how core and contrib modules inject their CSS classes, an ID, or data attributes onto template markup. You'll also find title_prefix and title_suffix variables. These are used by core and contrib modules…

Continue ReadingMario Hernandez: Handling Drupal attributes in components

Mario Hernandez: Flexible Headings with Twig

Proper use of headings h1-h6 in your project presents many advantages incuding semantic markup, better SEO ranking and better accesibility. Updated April 3, 2020 Building websites using the component based approach presents all kinds of advantages over the traditional page building approach. Today I’m going to show how to create…

Continue ReadingMario Hernandez: Flexible Headings with Twig

Mario Hernandez: Demystifying components integration with Drupal

Component-based development is something I have been doing for at least five years and it is incredible that I still find myself learning something new every time I work on a new project. In addition to development, I write training curriculums on the topic and this gives me more exposure…

Continue ReadingMario Hernandez: Demystifying components integration with Drupal