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.twig.extension.yml

21 lines
766 B
YAML
Raw Normal View History

2018-11-23 12:29:20 +00:00
description: 'Generate a Twig extension.'
help: 'The <info>generate:twig:extension</info> command helps you to generate a Twig extension.'
welcome: 'Welcome to the Drupal Twig Extension generator'
options:
module: 'The Module name.'
name: 'Twig Extension name'
class: 'Class name'
services: 'Load services from the container.'
questions:
module: 'Enter the module name'
name: 'Enter the twig Extension name'
class: 'Class name'
services: 'Enter your service'
examples:
- description: 'Generate a twig extension specifying the module name, the extension name and its class'
execution: |
drupal generate:twig:extension \
--module="modulename" \
--name="modulename.twig.extension" \
--class="DefaultTwigExtension"