This should also work for Drupal 8 and Drupal 10 versions.
Custom blocks are piece of contents, code or logic that you can put inside pages in Drupal.
To create custom blocks, you will need to have a custom module.
Read More
Blog
Upgrade the Drupal 9 to Drupal 10, fortunately is much more easy than upgrade from Drupal 7 to Drupal 8 or 9, however it still needs high Drupal knowledgment from the developer that will do. It requires to check the Drupal 10 requirements, some (pre and pos) upgrade steps to make sure that everything was upgrade successfully. See below the topics that I believe that is crucial to any developer to upgrade your current Drupal 9 project to the latest Drupal 10 version.
Read More
These days I was developing some credit card features, and I was looking for a credit card checker.
This should also work for Drupal 8 and Drupal 10 versions.
To get the value of a custom user field is pretty easy, see below:
Read More
This should also work for Drupal 8 and Drupal 10 versions.
Here we will give an options to query paragraphs, which is one of the most used contrib entities used in the Drupal, very useful and key-item for some projects.
Fortunately, to query paragraphs is similar to query any other entity in Drupal 9, we must use the entityQuery, as below:
Read More
This should also work for Drupal 8 and Drupal 10 versions.
In the Drupal, from 8 version, a service can be registered and used calling the services container.
Services are often used to help Drupal to decouple features and functionalities.
Read More
This should also work for Drupal 8 and Drupal 10 versions.
To query nodes by some field or property in Drupal 9 is very simple, just put and run the following lines in your project.
Read More