Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-en / translations / generate.plugin.condition.yml
1 description: 'Generate a plugin condition.'
2 help: 'The <info>generate:plugin:conditon</info> command helps you generate a plugin condition.'
3 welcome: 'Welcome to the Drupal Plugin Condition generator'
4 options:
5   module: 'The Module name.'
6   class: 'Plugin condition class name'
7   label: 'Plugin condition label'
8   plugin-id: 'Plugin condition id'
9   context-definition-id: 'Context definition ID'
10   context-definition-label: 'Context definition label'
11   context-definition-required: 'Context definition is required (TRUE/FALSE)'
12 questions:
13   module: 'Enter the module name'
14   class: 'Enter the plugin condition class name'
15   label: 'Enter the plugin condition label'
16   plugin-id: 'Enter the plugin condition id'
17   context-type: 'Context type'
18   context-entity-type: 'Context entity type'
19   context-definition-id: 'Context definition ID'
20   context-definition-label: 'Context definition label'
21   context-definition-required: 'Context definition is required'
22 examples:
23   - description: 'Generate a plugin condition for a node entity type specifying the module name, the class, the label, its id and the context definition'
24     execution: |
25       drupal generate:plugin:condition  \
26         --module="modulename"  \
27         --class="ExampleCondition"  \
28         --label="Example condition"  \
29         --plugin-id="example_condition"  \
30         --context-definition-id="entity:node"  \
31         --context-definition-label="node"  \
32         --context-definition-required
33   - description: 'Generate a plugin condition for language specifying the module name, the class, the label, its id and the context definition'
34     execution: |
35       drupal generate:plugin:condition  \
36         --module="modulename"  \
37         --class="ExampleCondition"  \
38         --label="Example condition"  \
39         --plugin-id="example_condition"  \
40         --context-definition-id="language"  \
41         --context-definition-label="Language"  \
42         --context-definition-required
43   - description: 'Generate a plugin condition for role configuration specifying the module name, the class, the label, its id and the context definition'
44     execution: |
45       drupal generate:plugin:condition  \
46         --module="modulename"  \
47         --class="ExampleCondition"  \
48         --label="Example condition"  \
49         --plugin-id="example_condition"  \
50         --context-definition-id="entity:user_role"  \
51         --context-definition-label="user_role"  \
52         --context-definition-required