1

I am trying to figure out how to design (and subsequently implement) as plugin-like solution in Symfony. I found this article https://drupalize.me/tutorial/what-are-plugins?p=2766 that says:

Plugins are a general reusable solution to a recurring problem within a given context... we call this a design pattern. This one just happens to be specific to Drupal.

Looking for a definition and/or links to similar design patterns.

9
  • The Site Audit module defines its own SiteAuditCheck and SiteAuditReport plugin. See git.drupalcode.org/project/site_audit/-/tree/8.x-3.x/src/Plugin. Other module's maintainers can then add their own checks from their modules.
    – leymannx
    Jul 3, 2020 at 13:10
  • 1
    I don't understand this comment. I am asking for information about the design pattern behind the plugin system. Jul 3, 2020 at 13:43
  • I am trying to figure out how to design (and subsequently implement) as plugin-like solution – Just look how other modules do it I'd say.
    – leymannx
    Jul 3, 2020 at 13:59
  • 1
    I want to implement that pattern in Symfony (or any other non-Drupal framework), that is why I want to know what it is called, if it goes by a name. Jul 3, 2020 at 14:04
  • 2
    +Configurable? Discoverable-Configurable-Plugin-Factory. First a plugin class is discovered, then configured and finally instantiated through a factory method.
    – 4uk4
    Jul 3, 2020 at 15:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.