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
Drupal NFT

You're not really into Drupal until you mint your entities...

Image
Tooltip

Display anything you want dynamically on mouse hover.

Image
Screenshot of a Calendar View using a date field with multiple values.
Calendar View

Finally, display your content in a Calendar in Drupal easily!

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
Twitter API Block module page on Drupal.org
Twitter Block

Display your tweets in Drupal throught Twitter API.

Image
Screenshot of Commerce Print module page
Commerce Print

Lightweight utility module to help users to print Commerce Orders as PDF file.

Image
Desmazieres homepage
Desmazieres

Code recovery to finalize a Drupal 8 + Drupal Commerce site for Desmazieres with

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?

...