drupal-smart-snippets icon indicating copy to clipboard operation
drupal-smart-snippets copied to clipboard

This extension adds rich language support for Drupal Hooks, Services, and Render Elements to VS Code.

Results 8 drupal-smart-snippets issues
Sort by recently updated
recently updated
newest added

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...

## Related Tickets closes #19

hacktoberfest-accepted

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

bug

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...

on-hold

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,...

enhancement
on-hold

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