Blog

Add bulk redirects with an EventSubscriber in Drupal 9

We know the Redirect module is an awesome way to create redirects for individual paths. But after a migration I needed to do some typical redirections.

Blog

Theming hooks for a custom entity

These snippets show you how to add hooks in order to generate twig files like mymodule/templates/my-entity--full.html.twig

Blog

How to set formControl default value but prevent to affect observable subscription

How to not subscribe to form changes when you set the default value via the ReactiveForms API

Blog

How to use translations with variables in Angular with ngx-translate

Translations are an important part of software when having a multilingual site. This snippet shows you how to use variables inside translations

Blog

How to use translations in a Angular Ionic Toast notification

Toasts are a very dynamic way of notifying your users. Here is how to translate them.

Blog

How to add classes to link fields in twig

In the following examples, I loop over a tag field and set a link with classes 

Blog

Ho to check if a field is empty in Drupal 8

A common task in custom coding is checking whether a field had a value. This snippet helps you with that.

Blog

How to use bundle classes in drupal 9 & 10

Bundle classes have arrived! In my opinion a major change to drupal and the way we will do theming. Introduced in branch 9.3.x.

Blog

Remove padding around ion-item in Ionic 5

Ionic is great because it comes with batteries included. Nevertheless, we always need some customization in the layout.

Blog

Disable hover color on ion-item in Ionic 5

Ion-items are a nice way of showing lists. The default behavior has some downsides, like a hover color.

Subscribe to