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.entity.content.yml
2018-11-23 12:29:20 +00:00

39 lines
1.7 KiB
YAML

description: 'Generate a new content entity'
help: 'The <info>generate:content:entity</info> command helps you generate a new content entity.'
welcome: 'Welcome to the Drupal Content Entity generator'
options:
module: 'The Module name.'
entity-class: 'The content entity class'
entity-name: 'The content entity name'
label: 'The label'
has-bundles: 'Entity has bundles'
base-path: 'The base-path for the content entity routes'
is-translatable: 'Content entity translatable'
questions:
module: 'Enter the module name'
entity-class: 'Enter the class of your new content entity'
entity-name: 'Enter the machine name of your new content entity'
label: 'Enter the label of your new content entity'
has-bundles: 'Do you want this (content) entity to have bundles?'
base-path: 'Enter the base-path for the content entity routes'
is-translatable: 'Is your entity translatable?'
revisionable: 'Is your entity revisionable?'
examples:
- description: 'Generate a content entity specifying the module, the entity class, the entity name, its path and label'
execution: |
drupal generate:entity:content \
--module="modulename" \
--entity-class="DefaultEntity" \
--entity-name="default_entity" \
--base-path="/admin/structure" \
--label="Default entity"
- description: 'Generate a translatable and revisionable content entity specifying the module, the entity class, the entity name, its path and label'
execution: |
drupal generate:entity:content \
--module="modulename" \
--entity-class="DefaultEntity" \
--entity-name="default_entity" \
--base-path="/admin/structure" \
--label="Default entity" \
--is-translatable \
--revisionable