Drupal 8, where did the code go? From info hook to plugin.

Looking at core and contrib modules for Drupal 8, you may be wondering "where did the code go?".

Drupal 8 has removed many of the "info" hooks that were found in your module file and converted them to plugins.

This session will be a practical discussion of how plugins work and how to upgrade your module to Drupal 8 if it used one of these hooks that's been converted to a plugin. I will include example of code from Drupal 7 and where the very similar code lives in Drupal 8. 

In addition I'll cover the essentials of implementing your own plugin if your module previously used an "info" hook and you want to join the new paradigm. You'll come away understanding plugin terminology and different ways plugins can be discovered,

Finally,  you  leave feeling good that you'll never again implement one of these hooks by mistake again when you're writing a function in your module.

 

Session Track

Coding and Development

Experience level

Intermediate

Drupal Version

Drupal 8.x

Session Time Slot(s)

Time: 
05/11/2016 - 14:15-05/11/2016 - 15:15
Room: 
280-281