DrupalReact.js

Loosely Coupled: Open Drupal Ajax dialog boxes from React via Drupal Behaviour

Dialogs are a quick and easy way to display additional information without reloading the entire page. Dialog boxes can display just some static text, any node or form of your page, a views page, or any custom markup you’ll feed them. In order to open some link/node/page in a modal window, you can add the […]

Drupal

Content Moderation and Workflow with Email Notification in Drupal 9

Creating editorial workflow using content moderation is used to speed up the publishing process. Imagine a website has 10 content types, hundreds of contents for each content type, and daily contents are updated or added by a single admin user who has the publish and unpublish permission. So admin user can verify and publish each […]

Shubham Joshi
Shubham Joshi
Read

DrupalReact.js

Loosely Coupled: Pass data to React app via drupalSettings

There may be a need to pass a variable, checkbox settings, or some global settings from drupal to react. This can be achieved by passing data from drupal into an API and consuming the same API in react. But why call an extra API when we can achieve it without it? We will be using […]

Deepali Bansal
Deepali Bansal
Read

DrupalReact.js

Loosely Coupled: Integrate React JS into Drupal sites

React is a JavaScript library that makes it painless to create interactive UIs. Unfortunately, embedding React into a Drupal site is not straightforward. In this article, I will show you relatively simple methods of how to do so. React can be integrated with Drupal in 2 ways: Fully decoupled Partially Decoupled (Loosely Coupled) Fully Decoupled […]

Deepali Bansal
Deepali Bansal
Read

Drupal

Progressively Decoupled App With React on Drupal

Decoupled Architecture To understand the term “Decoupled” we need to understand what “Coupled” is. A coupled (also known as “traditional” or “monolithic”) CMS knits together the front- and back-ends. Working off the same application, developers and content managers make adjustments to the back-end while users interact with the front-end, but both are experiencing, viewing, and […]

Shubham Joshi
Shubham Joshi
Read

Drupal

Check Drupal coding standard by phpcs in git pre-commit hook

In this tutorial, you will learn how to improve the custom code, theme and module, and general code development by using the pre-commit hook on git. Git pre-commit validates Drupal coding standards on files before committing them and returns a message to fix each line of code on the files having errors. Follow the next […]

Rajveer Singh
Rajveer Singh
Read

Drupal

Services and Dependency Injection in Drupal

Drupal 8+ is built upon Services, forming the backbone of modern Drupal development services, where much of the system functionality is powered through dependency injection. Services : Services: A service is any object managed by the services container, and understanding this concept is fundamental for teams offering scalable Drupal services, or we can say that […]

Drupal

How to create custom Rest Api

In this tutorial, we will learn how to create a custom RESTful Web Service in Drupal 9. Before creating Rest Api, we need to know what REST API is. An application programming interface (API or web API) allows interaction with RESTful web services. Where REST is known as Representational State Transfer. First, We will need […]

Drupal

Queue Operations – Manual or Cron Process Item

The drupal queue is for basically any long-running processes or such of any time-consuming task which is taking too much time, so here Drupal core is giving one of the best queue plugins to add items into the queue and process all items later behind the run-time request rather than taking time when loading the […]

Rakesh Kumar
Rakesh Kumar
Read