When working with Drupal, it's important to ensure data integrity by validating user input. Drupal 9 provides a robust system for field validation through constraints.
This time we will check if the current user has role 'administrator', we will use a simple controller example to demonstrate that.
Today I will create a filed formatter, we will use it to display a media image as a url.
It has been a while since I didn't post on my blog. I'm trying to get back on it these days.
In this example I will create a Drupal 8/9 service to add a custom Drush command.