drupal-smart-snippets
drupal-smart-snippets copied to clipboard
This extension adds rich language support for Drupal Hooks, Services, and Render Elements to VS Code.
I would like to request a new feature that can automate namespace insertions. Given I'm in `web/module/custom/example/src/Controller/ExampleController.php` -> generates `namespace Drupal\example\Controller;` Given I'm in `web/module/custom/theme/src/Plugin/Block/ExampleBlock.php` -> generates `namespace Drupal\example\Plugin\Block;` The...
When using `@FormElement` to autocomplete form elements, the `entity_autocomplete` element is missing. The scraper needs to add `/core/lib/Drupal/Core/Entity/Element/` to include it. thanks, -mike
At some point, the tarballs at drupal.org/project/drupal will go away, and that's currently where we're getting all the source code to scan through and generate snippets. This means that we'll...
Not sure if the metadata exists to produce this, but it would be great if the hook templates could include more types. An example might be: function modulename_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state,...
Update for [Drupal 10.3.0](https://www.drupal.org/project/drupal/releases/10.3.0)
Following [this change record](https://www.drupal.org/node/3442349), we'll need to find a way to scrape/generate object-oriented hooks. From the CR: > The method implementing the hook has the same signature as the procedural...
https://code.visualstudio.com/api/working-with-extensions/testing-extension