andy-blum / drupal-smart-snippets

This extension adds rich language support for Drupal Hooks, Services, and Render Elements to VS Code.
https://marketplace.visualstudio.com/items?itemName=andrewdavidblum.drupal-smart-snippets
MIT License
21 stars 4 forks source link

Hook snippets strip "$" from parameter variables #18

Closed andy-blum closed 1 year ago

andy-blum commented 1 year ago

When adding a new hook, the parameter variables do not have the $ and cause PHP errors.

<?php

/**
 * Implements hook_preprocess_HOOK().
 */
function my_module_preprocess_HOOK(&variables) { // should be &$variables

}