1 description: 'Generate a new content entity'
2 help: 'The <info>generate:content:entity</info> command helps you generate a new content entity.'
3 welcome: 'Welcome to the Drupal Content Entity generator'
5 module: 'The Module name.'
6 entity-class: 'The content entity class'
7 entity-name: 'The content entity name'
9 has-bundles: 'Entity has bundles'
10 base-path: 'The base-path for the content entity routes'
11 is-translatable: 'Content entity translatable'
13 module: 'Enter the module name'
14 entity-class: 'Enter the class of your new content entity'
15 entity-name: 'Enter the machine name of your new content entity'
16 label: 'Enter the label of your new content entity'
17 has-bundles: 'Do you want this (content) entity to have bundles?'
18 base-path: 'Enter the base-path for the content entity routes'
19 is-translatable: 'Is your entity translatable?'
20 revisionable: 'Is your entity revisionable?'
22 - description: 'Generate a content entity specifying the module, the entity class, the entity name, its path and label'
24 drupal generate:entity:content \
25 --module="modulename" \
26 --entity-class="DefaultEntity" \
27 --entity-name="default_entity" \
28 --base-path="/admin/structure" \
29 --label="Default entity"
30 - description: 'Generate a translatable and revisionable content entity specifying the module, the entity class, the entity name, its path and label'
32 drupal generate:entity:content \
33 --module="modulename" \
34 --entity-class="DefaultEntity" \
35 --entity-name="default_entity" \
36 --base-path="/admin/structure" \
37 --label="Default entity" \