Drupal

Blog

Get page title inside of a paragraph in Drupal 10

I encountered this when I had to build a hero paragraph. I needed the page title inside my paragraph.

Blog

How to access custom block content field in Twig (Drupal 10)

I started using custom blocks for reusable content on a website. It turns out twig works a bit different on block content than on paragraphs.

Blog

How to set permissions to a route programmatically in Drupal 8, 9 or 10

Are you looking for a way to create custom permissions for your Drupal 8 module? Since Drupal 8, permissions are defined in a MODULENAME.permissions.yml file.

Blog

Programmatically saving a file in Drupal 8, 9 & 10

This tutorial code shares how to share a file entity programmatically in Drupal.

Blog

How to put a Drupal site in maintenance mode with drush

If you are running a devOps system, you can put your sites in maintenance mode like this:

Blog

The best ways to learn Drupal

Learn Drupal from basic to advanced level.

Subscribe to Drupal