Ever wondered how Drupal 8 authenticates a user? Let’s do a deep dive and find out.
DIY Drupal hosting using DrupalVM.
DIY Drupal hosting using OpenDevShop.
DIY Drupal hosting using Aegir Project.
The meta stuff I’ll be writing a series of posts exploring DIY drupal hosting options. Many agencies and freelancers need a workflow to manage and maintain their Drupal sites on a budget. Of course, they incur the cost of maintaining and deploying the system(at least initially) and the additional learning curve involved in using the […]
Ever wondered what exists inside the vendor/ directory of your Drupal or PHP codebase? Let’s dive down the rabbit hole and see.
We’ve seen how validation works and how to create a custom validation component previously. Chances are, a validation component already exists for most of the requirements. Thanks to Composer and the way Symfony is organized as components, it is easy to reuse existing components. We will try our hand at one such component, the Zip Code validator. We will use […]
In the first part, we saw how entity validation works in Drupal 8, why it is a separate component and how most parts are adopted from Symfony’s entity validation framework. We will try our hands on creating our own custom validator in this post.This validator will fail to create a node if the user ID is […]
Drupal 8 has its entity validation separate and decoupled from the typical validation given by its form API. This is done for a lot of reasons. For one, entities might get added from other non UI means, like via the REST API, or programmatically, while importing data from an external source. Under these circumstances, the […]
There is a lot of literature about entities and their purpose in Drupal 7 context. Most of it has been adopted in Drupal 8 as well. In this post, I’ll highlight the differences between D7 and D8 entities and how to use the entity API in 8. Entities have their own classes in 8. Also, […]