Image
A collection of mugs with names on it
Get the title from a Url in Drupal
Drupal

As I was building a module to create bookmark in Drupal, I needed to find the best way to retrieve the page title for any given Url possible (e.g. path aliases).

It turns out there is a resolver service for that: the title_resolver.

However it is not obvious how to use it. There are just a few implementation in core and none is easy to duplicate and use as-is in your own module. So I'd like to share my solution.

Image
Screenshot of a Calendar View using a date field with multiple values.
How to create a Calendar in Drupal
Drupal

TL;DR: Get 📅 Calendar View, create a View and exposed one or multiple date fields.

Image
Hacker by night
How to create fields programmatically in Drupal
Drupal

Have you ever faced a project where there are tons of fields to create and you just don't feel like clicking through the Drupal admin UI to configure them one by one ? Your fields might also be shared between several bundles and so you have to recreate them, again and again, for each node types. Then comes the time to place your fields in each form displays and each view displays...

Depending on the complexity of your project and the size of your team, the task of creating/configuring/placing fields correctly in Drupal can be very looong and tedious.

Image
A matrix computer screen
Blazing fast local development with lando

My session done at DrupalCamp Montreal 2018 about a high speed workflow for Drupal 7 and 8 with Composer, NPM and Lando.

Image
Two look-alike birds
How to safely override or extend other services' methods in Drupal 8
Drupal

So you want to edit a specific piece of code provided by a class from Drupal's core or from a contrib module?

...

Image
Someone clicking on something
How to automatically submit Views Exposed Filters in Drupal
Drupal

You just need a few lines of Javascript to automatically filter all your Views in Drupal.

Image
Panier de fraises
How to render Add to cart form programmatically with Drupal Commerce 2
DrupalE-commerce

Basically, we use the great Lazy Builder provided by Commerce Cart module. Easy peazy!

Image
Multilingual world
How to filter Drupal 8 menu by current language
Drupal

Menus are very specials in Drupal 8 - and sometimes very frustrated too!
Learn how to filter menu items by the current user's language in Drupal 8.