1 description: 'Generate a new config entity'
2 help: 'The <info>generate:config:entity</info> command helps you generate a new config entity.'
3 welcome: 'Welcome to the Drupal Config Entity generator'
5 module: 'The Module name.'
6 entity-class: 'The config entity class'
7 entity-name: 'The config entity name'
9 bundle-of: 'Acts as bundle for content entities'
10 base-path: 'The base-path for the config entity routes'
12 module: 'Enter the module name'
13 entity-class: 'Enter the class of your new config entity'
14 entity-name: 'Enter the name of your new config entity'
15 label: 'Enter the label of your new config entity'
16 bundle-of: 'Name of the content entity you want this (config) entity to act as a bundle for'
17 base-path: 'Enter the base-path for the config entity routes'
19 - description: 'Generate config entity specifying the module, the entity class, the entity name, its path and label'
21 drupal generate:entity:config \
22 --module="modulename" \
23 --entity-class="DefaultEntity" \
24 --entity-name="default_entity" \
25 --base-path="/admin/structure" \
26 --label="Default entity"