entityQuery is one of the most used functions in Drupal. It helps you easily pull Drupal entities in code. But when you use this in contexts other than controllers, say in cron-jobs or update hooks where the system is accessed as anonymous users, it may not work as expected in Drupal 9 Unless you call accessCheck explicitly. This short article talks about how to use entityQuery in these contexts and write entityQuery compatible with Drupal 10.x
From MySQL 5.7 onwards, the error SQLSTATE: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column will appear if any non aggregated columns are in the select list, which is not in the group by clause. This article discusses one such use case with Mautic and how we solved it.
A step-by-step tutorial on how to configure Lando with Drupal to use a custom domain in your local development environment.
So, what exactly is white box testing? This article will discuss white box testing techniques, examples, and more.
Software development outsourcing can be a very cost-effective method. Read these tips to help you make sure that your project is a success.
Agility is at the core of any Drupal site building project. The market changes fast, so the business needs. A Drupal site builder or developer also needs to support the business in this agile environment. This tutorial covers how to solve the error - "There is data for this field in the database. The field settings can no longer be changed."
The BPMN is a graphical representation of the business process. It can be used to document, automate and understand the flow of business processes.
MVP stands for Minimum Viable Product. The idea behind this term is to get the product out there as quickly as possible and then iterate based on customer feedback.
Learn about Svelte, Svelte is a framework for building modern, performant, maintainable applications on the web.
In this article, we'll discuss what a raid log is, what does raid log stands for, and about four key areas.
Zyxware's point of view (POV) on the top 5 major challenges you might face during migrating to Devops Drupal Production Environment
The SMTP module enables your Drupal CMS to use your existing SMTP based email delivery platform to send emails. This blog cover steps to configure the SMTP module for Drupal.
Learn through this guide the process of creating a module to extend Drupal's functionalities and discover the types of modules available
Testing email functionality in Drupal is a common use case every developer encounters frequently. Setup a full-featured email system locally or using a 3rd party service for just testing emails may not be feasible always. Mailhog is the best solution available for this scenario and the bonus point is that it works perfectly with Lando.
Read the article to know more about the evolution, advantages, pitfalls, and real-world examples of Web3.0.
"The website encountered an unexpected error. Please try again later." this is the most common error encountered by a Drupal developer. Usually, errors are logged by Drupal and the logs can be accessed from Admin->Reports->Recent log messages. But when you get "The website encountered an unexpected error. Please try again later." you cannot even access the reports dashboard.
You can always create a view manually, and change the configuration one by one manually. And, all done. But, still, there is a chance of manual error. Drupal9 allows you to import-export views. You can follow the below steps to Import and Export views
In pre Drupal 8 era, the global variable $user was available every where, from you can easily get the current logged in user id. For all new version of Drupal, you should use \Drupal::currentUser()->id() Once you have the user id, you can use the User::load to get the user object.
The Drupal Publish Content module is a simple module that provides you additional permissions to allow users to publish or unpublish content without having to give the user the ability to administer all the content on your site. This module is a lightweight solution to help you build out your content management workflow on your Drupal site.
In Drupal we can use Drupal::entityQuery() & Node::loadMultiple() to load all nodes of given type