I've read about the Basic Structure guide to building a Drupal 8 module. It's great that it outlines the basic files needed to get a module up and running.
Where it falls short is the contents of the
I've seen modules with the usual folders like
src/Form. But I've also seen ones that appear to be arbitrarily named. Some files are referenced in annotations and yaml config, while some Drupal magically just knows about without some reference.
Does the folder structure matter? Does Drupal care if I put controllers in
src/MaybeNotControllers? Are plugins like, formatters and widgets, still discoverable if not put in
src/Plugins? Is there a definitive guide to what files go where and how Drupal finds out about them?