You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✝ fpd8 ✝ /var/www/site/docroot $ drupal generate:plugin:type:annotation
Welcome to the Drupal Plugin Type generator
Enter the module name: fillpdf
Plugin type class name [ExamplePlugin]: FillPdfActionPlugin
Plugin type machine name [fill_pdf_action_plugin]: fillpdf_action
Plugin type label [Fill pdf action plugin]: FillPDF action plugin
Generated or updated files
Site path: /var/www/site/docroot
1 - modules/fillpdf/src/Annotation/FillPdfActionPlugin.php
2 - modules/fillpdf/src/Plugin/FillPdfActionPluginBase.php
3 - modules/fillpdf/src/Plugin/FillPdfActionPluginInterface.php
4 - modules/fillpdf/src/Plugin/FillPdfActionPluginManager.php
5 - modules/fillpdf/fillpdf.services.yml
The files are generated in src/Plugin, but they have a namespace of Drupal\fillpdf, not Drupal\fillpdf\Plugin. The namespace doesn't match the directory, and PSR-4 won't work.
The problem is the aforementioned namespace issue.
I can fix the namespaces manually, but without PhpStorm's intelligence telling me that it couldn't resolve FillPdfActionPluginManager this would have thrown me off for a while.
The text was updated successfully, but these errors were encountered:
This is what I did (I'm on Drupal Console 0.9.1):
The files are generated in
src/Plugin
, but they have a namespace ofDrupal\fillpdf
, notDrupal\fillpdf\Plugin
. The namespace doesn't match the directory, and PSR-4 won't work.Also, in
fillpdf.services.yml
, this was added:The problem is the aforementioned namespace issue.
I can fix the namespaces manually, but without PhpStorm's intelligence telling me that it couldn't resolve
FillPdfActionPluginManager
this would have thrown me off for a while.The text was updated successfully, but these errors were encountered: