21 lines
766 B
YAML
21 lines
766 B
YAML
![]() |
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"
|