About this talk
This talk explores Drupal 8's innovative Plugin system, which has largely replaced the traditional hook_info and hook_alter patterns. The speaker delves into the new API that enhances discovery, instantiation, and invocation of classes within Drupal, as well as its applications outside the platform. The session covers various subsystems now utilizing plugins, such as blocks, conditions, and field widgets, while showcasing examples of effective plugin usage. A significant portion of the discussion focuses on the DefaultPluginManager class, illustrating how to leverage Drupal's built-in facilities and create custom plugin types.