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.
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.
My session done at DrupalCamp Montreal 2018 about a high speed workflow for Drupal 7 and 8 with Composer, NPM and Lando.
So you want to edit a specific piece of code provided by a class from Drupal's core or from a contrib module?
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.