From ctools to D8 plugins

lslinnet

Lean, simple and plugable is some of the characteristics we try to strive for when developing, keeping functionality at its least complex state, making it reusable, replaceable and removable – these are some of the things that makes a great plugin.

We will in this talk get into why functionality doesn't always have to come in the form of a module and why delivering small and specialized functionality comes in the form of plugins in D8.

This presentation will cover:
  • Plugins vs. Modules, why D8 plugins are superior in many cases.
  • Define a base for what plugin is and why it is important to keep them lean and simple.
  • The transformation of going from a D7 plugin system (ctools) to the D8 plugin api.
  • Writing your own plugin, it is easy! (well... kinda)
  • Plugins are cool, how do I make use of them in my module?

Along the way we will look at different examples of for both D7 ctools and D8 native plugins.

Session Track

Coding and Development

Experience Level

Intermediate

Drupal Version