This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/drupal/console-en/translations/generate.event.subscriber.yml
2018-11-23 12:29:20 +00:00

26 lines
1,010 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'