popsu-d9/old.vendor/drupal/console-en/translations/generate.event.subscriber.yml
2022-04-27 11:30:43 +02:00

26 lines
1010 B
YAML

description: 'Generate an event subscriber'
help: 'The <info>generate:event:subscriber</info> command helps you generate a new event subscriber.'
welcome: 'Welcome to the Drupal Event Subscriber generator'
options:
module: 'The Module name.'
name: 'Service name'
class: 'Class name'
services: 'Load services from the container.'
event-name: 'Enter event name'
callback-name: 'Callback function name to handle event'
questions:
module: 'Enter the module name'
name: 'Enter the service name'
class: 'Enter the class name'
services: 'Enter your service'
event-name: 'Enter event name'
callback-name: 'Enter the callback function name to handle event'
examples:
- description: 'Generate an event subscriber specifying the module name, its name, the class and the events to subscribe'
execution: |
drupal generate:event:subscriber \
--module="modulename" \
--name="modulename.default" \
--class="DefaultSubscriber" \
--events='kernel_request'