Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-en / translations / generate.plugin.fieldformatter.yml
index a47e9b7e06c1a761a95fce5e2d8b6aa2147ac92b..af6a6436e574ab23c4275ab1ece372ed4403c76b 100644 (file)
@@ -2,14 +2,23 @@ description: 'Generate field formatter plugin.'
 help: 'The <info>generate:plugin:fieldformatter</info> command helps you generate a new field formatter plugin.'
 welcome: 'Welcome to the Drupal Field Formatter Plugin generator'
 options:
-    module: common.options.module
-    class: 'Plugin class name'
-    label: 'Plugin label'
-    plugin-id: 'Plugin id'
-    field-type: 'Field type the plugin can be used with'
+  module: 'The Module name.'
+  class: 'Plugin class name'
+  label: 'Plugin label'
+  plugin-id: 'Plugin id'
+  field-type: 'Field type the plugin can be used with'
 questions:
-    module: common.questions.module
-    class: 'Enter the plugin class name'
-    label: 'Enter the plugin label'
-    plugin-id: 'Enter the plugin id'
-    field-type: 'Enter the field type the plugin can be used with'
+  module: 'Enter the module name'
+  class: 'Enter the plugin class name'
+  label: 'Enter the plugin label'
+  plugin-id: 'Enter the plugin id'
+  field-type: 'Enter the field type the plugin can be used with'
+examples:
+  - description: 'Generate a a text field formatter plugin specifying the module name, the class, the label its plugin id and the field type'
+    execution: |
+      drupal generate:plugin:fieldformatter  \
+        --module="modulename"  \
+        --class="ExampleFieldFormatter"  \
+        --label="Example field formatter"  \
+        --plugin-id="example_field_formatter"  \
+        --field-type="text"