Cleanup plugin constructors

Created on 8 February 2023, over 1 year ago
  • Plugins should generally not use __construct() and should only use create() if they can. Adding constructors makes it hard for others to inherit the plugin base.
  • Every plugin needs the styleguide generator, so why not provide it in the base plugin class?
  • Plugins should use the provider annotation data instead of using the module handler. This will avoid loading plugins for modules that are not installed like comment, search, etc.
  • The Views mini pager styleguide item should be moved to its own plugin for Views. Generally we should be trying to reduce/remove moduleExists() checks inside the DefaultStyleguide class if we can.
πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Dave Reid Nebraska πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024