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

Add @param and @return to docbloc #15

Closed lostcarpark closed 1 year ago

lostcarpark commented 1 year ago

At present, the docbloc Smart Snippits generates is fairly minimal, e.g.:

/**
 * Implements hook_form_alter().
 */

It would be great if a more complete docbloc could be generated. For example:

/**
 * Implements hook_form_alter().
 * 
 * @param array &$form
 *   The form array.
 * @param \Drupal\Core\Form\FormStateInterface $form_state
 *   The current state of the form.
 * @param string $form_id
 *   The form identification.
 */
andy-blum commented 1 year ago

This is currently not in line with the Drupal coding standards, though there is an open issue to change this

lostcarpark commented 1 year ago

Thanks for the clarification.