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: Building a Drupal Theme with the Theme Generator

On one of my last training workshops I took a chance and decided to let students pick their environment of choice to use during training. As always I hosted an online call prior to training to assist anyone who needed help setting up their environment. About five of the students…

Continue ReadingMario Hernandez: Building a Drupal Theme with the Theme Generator

Mario Hernandez: Building an automated DDEV-based Drupal environment

A successful training experience begins before we step foot in the training room. Or, in these days of distance learning, it begins before students login to your training platform. The challenge is having an environment that is easy for students to setup and provides all the tooling required for the…

Continue ReadingMario Hernandez: Building an automated DDEV-based Drupal environment

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

Mario Hernandez: Five principles for building better components

When working on a component-based project, building components or patterns, can be a liberating experience because we are able to draft the best markup possible to build the most flexible, scalable and reusable components. If you work with third party platforms such as SharePoint, WordPress, Drupal, or others, this becomes…

Continue ReadingMario Hernandez: Five principles for building better components