Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / src / Commands / generate / Generators / Drush / drush-command-file.twig
diff --git a/vendor/drush/drush/src/Commands/generate/Generators/Drush/drush-command-file.twig b/vendor/drush/drush/src/Commands/generate/Generators/Drush/drush-command-file.twig
new file mode 100644 (file)
index 0000000..fa19659
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+namespace Drupal\{{ machine_name }}\Commands;
+
+{% if not source %}
+use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
+{% endif %}
+use Drush\Commands\DrushCommands;
+
+/**
+ * A Drush commandfile.
+ *
+ * In addition to this file, you need a drush.services.yml
+ * in root of your module, and a composer.json file that provides the name
+ * of the services file to use.
+ *
+ * See these files for an example of injecting Drupal services:
+ *   - http://cgit.drupalcode.org/devel/tree/src/Commands/DevelCommands.php
+ *   - http://cgit.drupalcode.org/devel/tree/drush.services.yml
+ */
+class {{ class }} extends DrushCommands {
+
+{% if source %}
+{% include 'ported-methods.twig' %}
+{% else %}
+{% include 'default-methods.twig' %}
+{% endif %}
+}