25 lines
950 B
YAML
25 lines
950 B
YAML
![]() |
description: 'Generate an implementation of a skeleton plugin'
|
||
|
help: 'The <info>"%s"</info> command helps you generate a skeleton plugin "%s".'
|
||
|
welcome: 'Welcome to the Drupal Skeleton Plugin generator'
|
||
|
|
||
|
options:
|
||
|
module: 'The Module name.'
|
||
|
plugin: 'The Plugin Id.'
|
||
|
class: 'Plugin class name'
|
||
|
services: 'Load services from the container.'
|
||
|
questions:
|
||
|
module: 'Enter the module name'
|
||
|
plugin: 'Enter the Plugin Id'
|
||
|
class: 'Enter the plugin class name'
|
||
|
services: 'Enter your service'
|
||
|
messages:
|
||
|
plugin-dont-exist: 'The plugin "%s" does not exist.'
|
||
|
plugin-generator-implemented: 'Plugin "%s" already has an advanced command generator, please use "%s"'
|
||
|
examples:
|
||
|
- description: 'Generate a plugin skeleton specifying module name, the plugin id and the class'
|
||
|
execution: |
|
||
|
drupal generate:plugin:skeleton \
|
||
|
--module="modulename" \
|
||
|
--plugin-id="link_relation_type" \
|
||
|
--class="DefaultLinkRelationType"
|