The Drupal 8 plugin system – part 4

We defined what a plugin is, discussed some plugins used in core and wrote our own custom pluginpreviously. We shall tune it up a bit in this post. Real world plugins have a lot more properties than the label property mentioned in our breakfast plugin. To make our plugin more “real world”, we introduce 2 properties, image and ingredients. It makes […]

The Drupal 8 plugin system – part 3

Checkout part 1 and part 2 for understanding the concept of plugins. In this installment, we will be Implementing a new plugin from existing plugin types.Implementing a new plugin type using the annotation based discovery mechanism. As an exercise, let’s first construct an imaginary scenario where the user of your Drupal site wants choose what they want for breakfast from a […]