Mercurial > hg > cmmr2012-drupal-site
diff vendor/chi-teck/drupal-code-generator/templates/other/drush-command.twig @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/vendor/chi-teck/drupal-code-generator/templates/other/drush-command.twig Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/chi-teck/drupal-code-generator/templates/other/drush-command.twig Thu Feb 28 13:11:55 2019 +0000 @@ -8,7 +8,7 @@ /** * Implements hook_drush_help(). */ -function {{ command_file_prefix | h2u }}_drush_help($section) { +function {{ command_file_prefix|h2u }}_drush_help($section) { switch ($section) { case 'drush:{{ command_name }}': $help = dt('Help text here.'); @@ -19,7 +19,7 @@ /** * Implements hook_drush_command(). */ -function {{ command_file_prefix | h2u }}_drush_command() { +function {{ command_file_prefix|h2u }}_drush_command() { $items['{{ command_name }}'] = [ 'description' => '{{ description }}', @@ -43,7 +43,7 @@ /** * Callback function for {{ command_name }} command. */ -function drush_{{ command_callback_suffix | h2u }}($argument) { +function drush_{{ command_callback_suffix|h2u }}($argument) { $option = drush_get_option('{{ option }}', 'default'); drush_print(dt('Argument value is "@argument".', ['@argument' => $argument]));