Prior to Drupal 8, the most common way that a developer would make sure her/his module was extensible was by adding a "hook". While Drupal 8 still makes use of hooks in many places, there is a better way to do things. Actually there are two better ways to do things:
* Writing an Event
* Making your module "pluggable"
In this presentation Marc Isaacson (vegantriathlete) will give you an overview of the Plugin API. If you're looking to learn about writing an event dispatcher, you'll have to go to a different talk.
We will look at examples of plugins in Drupal core, focusing on the high level concepts that are involved. If time warrants, and there is interest, we may even look at a simple custom example.
Oh, and I will also make brief mentions of Drupal hooks and event dispatchers just as a point of reference.
Attendees of this session will leave with an understanding
* Defining a plugin manager
* Using Annotations
* Defining your plugin namespace
* Instantiating plugins
* Using config (entities) to determine which plugin to use
We will not be discussing Plugin Contexts or Plugin Derivatives. Though we will definitely be looking at some code, we will not be getting too down and dirty with code level technicalities. This is a beginner level presentation and you may feel comfortable attending even if you don't have any experience writing custom modules. If you are expecting to leave the presentation as a Plugin expert, then you will want to make sure that you entered the presentation that way.
Pizza and socializing officially start at 6:30 p.m. Discussion and presentations start at 7. At 5:30 there will be an unofficial Happy Hour across the street at Denver Beer Co. Signup here or on the Groups.Drupal.org page (https://groups.drupal.org/node/535440). Add a comment if you have a question or want to share something!
We'll meet at Galvanize's Platte Street location: 1644 Platte Street, Denver CO 80202. Galvanize is an event sponsor who provides the facilities we meet in. Learn more about them and the campus at https://www.galvanize.com/campuses/denver-golden-triangle.
Pizza and drinks will be provided courtesy of event sponsor Aten Design Group. Aten Design Group is a digital strategy, design, and development company who works with organizations making positive impact on societies all around the world. Learn more about them at https://aten.io.
Meetup.com membership is sponsored by DDEV. DDEV is a platform that provides a complete end to end solution for developers and teams built with intelligence on Open Source projects like Kubernetes. Learn more about them at https://www.drud.com.