Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-en / translations / generate.plugin.type.annotation.yml
index 0ad7db9049b13ae306292f4c810f19d5ce14a232..b75e064252f8264c711061e52d11b699dca9097d 100644 (file)
@@ -1,13 +1,21 @@
 description: 'Generate a plugin type with annotation discovery'
 help: 'The <info>generate:plugin:type:annotation</info> command helps you generate a new Plugin type that uses annotation discovery.'
-welcome: 'Welcome to the Drupal Plugin Type generator'
+welcome: 'Welcome to the Drupal Plugin Type Annotation generator'
 options:
-    module: common.options.module
-    class: 'Plugin type class name'
-    machine-name: 'Plugin type machine name'
-    label: 'Plugin type label'
+  module: common.options.module
+  class: 'Plugin type class name'
+  machine-name: 'Plugin type machine name'
+  label: 'Plugin type label'
 questions:
-    module: common.questions.module
-    class: 'Enter the plugin type class name'
-    machine-name: 'Enter the plugin type machine name'
-    label: 'Enter the plugin type label'
+  module: common.questions.module
+  class: 'Enter the plugin type class name'
+  machine-name: 'Enter the plugin type machine name'
+  label: 'Enter the plugin type label'
+examples:
+  - description: 'Generate a plugin with annotation discovery specifying module name, class name, machine name and label'
+    execution: |
+      drupal generate:plugin:type:annotation  \
+        --module="modulename"  \
+        --class="ExamplePlugin"  \
+        --machine-name="example_plugin"  \
+        --label="Example plugin"