DigitalNadeem Blog

How to inject services in Drupal – a step by step tutorial 0

How to inject services in Drupal – a step by step tutorial

What is dependency injection  Dependency injection is  a design pattern in Object oriented programming where we can pass existing object or services to a  class and use its functions with out bothering about its...

Drupal OTP login using Twilio SMS gateway 0

Drupal OTP login using Twilio SMS gateway

In this article we are discussing how to replace the default login of a Drupal 9/10 website with OTP login. Here we are going to implement additional authentication for Drupal login using twilio sms...

How to customize login page with custom login fields in Drupal 9 & 10 0

How to customize login page with custom login fields in Drupal 9 & 10

Here we are discussing about how to customize default login page of drupal for making users to easily login. For example instead of providing user name and password  we can allow users to provide...

How to render views and blocks in twig files using twig tweak module in Drupal 0

How to render views and blocks in twig files using twig tweak module in Drupal

During customization of themes, developers face issues for rendering views, view results , blocks, forms and other entities in twig files.  An easy way to render these elements makes developers to customize themes fast...

How to add an existing path in your custom module to Drupal Menu system 0

How to add an existing path in your custom module to Drupal Menu system

Here we are going to discuss how to show custom routes created in custom module in Drupal menu system. Go to Structure-> Menu under path admin/structure/menu You can see below menu links, All menu...

How to find and install contributed modules from drupal.org using project browser module 0

How to find and install contributed modules from drupal.org using project browser module

Here we are discussing about project browser module which helps developers easily browse and install various contributed modules in drupal.org. After installation of this module, you will be having a separate page in your...

How to Create Custom field in Drupal 9 0

How to Create Custom field in Drupal 9

Here we are going to create a custom field and that can be used as a field in content types. Here we are using color jquery farbtastic jquery plugin for creating a color picker...

Drupal Commerce – How to create Rest API  for user  order details  and user order items. 0

Drupal Commerce – How to create Rest API for user order details and user order items.

Here we are going to discuss  how to create rest APIs for user order details and user order item details. Here we are going to achieve this without writing code. We will be using...

Drupal Commerce Login and register API 0

Drupal Commerce Login and register API

Here we are going to configure and use login and register Rest API’s. So for Drupal commerce we can use the Drupal Core Restful web service. Make  sure you have installed the Core Restful...