Archive for the ‘drupal plugin’ Category

Drupal 8 Entity Validation and Typed Data Explained

Posted on: No Comments
Data validation is a very important part of any application. Drupal 7 has a great Form API that can handle complex validation of submitted data, which can then be turned into entities. However, form level validation is problematic. For example, it beco...

Your First Drupal 8 Migration

Posted on: No Comments
Migrate is one of the most established modules in the Drupal ecosystem. So much so that with Drupal 8, a decision has been made to get some of its functionality ported and added to Drupal core. An important reason was that the traditional upgrade betwe...

Tutorial on Using Drupal 8 Plugin Derivatives Effectively

Posted on: No Comments
In an earlier tutorial, we looked at the Drupal 8 plugin system and how to create our very own custom plugin type. We’ve seen that much of the functionality declared via _info hooks in Drupal 7 has been replaced by these plugins. Our use case was ver...

Building Custom cTools Plugins in Drupal 7

Posted on: No Comments
cTools is one of those critical Drupal 7 modules many others depend on. It provides a lot of APIs and functionality that makes life easier when developing modules. Views and Panels are just two examples of such powerhouses that depend on it. cTools ma...

Drupal 8 Third Party Settings and Pseudo-Fields

Posted on: No Comments
In the first installment of this series we started our journey towards creating some simple but powerful functionality. The goal we set was to have the possibility to load a form on each node page and to be able to choose which form type should be used...

Drupal 8 Custom Plugin Types

Posted on: No Comments
Drupal 8 comes with a great addition to the backend developer toolkit in the form of the plugin system. Completely new, specific to Drupal and evolved from serving only a few specific purposes, plugins have become the go-to system for reusable function...