22 lines
857 B
YAML
22 lines
857 B
YAML
![]() |
description: 'Generate image formatter plugin.'
|
||
|
help: 'The <info>generate:plugin:imageformatter</info> command helps you generate a new image formatter plugin.'
|
||
|
welcome: 'Welcome to the Drupal Image Formatter Plugin generator'
|
||
|
options:
|
||
|
module: 'The Module name.'
|
||
|
class: 'Plugin class name'
|
||
|
label: 'Plugin label'
|
||
|
plugin-id: 'Plugin id'
|
||
|
questions:
|
||
|
module: 'Enter the module name'
|
||
|
class: 'Enter the plugin class name'
|
||
|
label: 'Enter the plugin label'
|
||
|
plugin-id: 'Enter the plugin id'
|
||
|
examples:
|
||
|
- description: 'Generate a image formatter plugin specifying the module name, the class, its label and the plugin id'
|
||
|
execution: |
|
||
|
drupal generate:plugin:imageformatter \
|
||
|
--module="modulename" \
|
||
|
--class="ExampleImageFormatter" \
|
||
|
--label="Example image formatter" \
|
||
|
--plugin-id="example_image_formatter"
|