6

Drupal has many specific terms that can have different meanings depending on usage (e.g. view vs. a Drupal View). It looks like another in Drupal 8 is plugin & module. Generically, both seem to imply extending functionality to existing code (e.g. FireFox plugin, WordPress plugin, Drupal module, Angular module, etc.). However, it seems like they are 2 different things in Drupal 8.

As I understand it, D8 plugins (the incorporation of CTools plugins in D8?) are reusable components like a form widget, while modules are extensions to Drupal 8 core code that can implement or create plugins. Is this correct?

1
  • 1
    Well, one of the architects of the current plugin system is a ctools maintainer... but it's much more modern.
    – user49
    Sep 15, 2015 at 15:26

1 Answer 1

8

Yes, you're right: Modules are still modules, the equivalent of what WordPress calls plugins. Each module can implement one or more plugins.

For example, the Voting API module has a plugin for each of the methods to show the result: Average, Sum and Count.

Plugins also needs a plugin manager, which is the responsible for actually calling the plugins.

You can see this on:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.