You are here

private function KeyCommands::keyOptions in Key 8

Returns array of key options.

Return value

array Array of key options.

1 call to KeyCommands::keyOptions()
KeyCommands::save in src/Commands/KeyCommands.php
Save a key.

File

src/Commands/KeyCommands.php, line 382

Class

KeyCommands
Class KeyCommands.

Namespace

Drupal\key\Commands

Code

private function keyOptions() {
  return [
    'label' => [
      'description' => dt('The human-readable label of the key.'),
    ],
    'description' => [
      'description' => dt('A short description of the key.'),
    ],
    'key-type' => [
      'description' => dt('The key type. To see a list of available key types, use `drush key:type-list`.'),
      'example-value' => 'authentication,encryption',
    ],
    'key-type-settings' => [
      'description' => dt('Settings specific to the defined key type, in JSON format.'),
    ],
    'key-provider' => [
      'description' => dt('The key provider. To see a list of available key providers, use `drush key:provider-list`.'),
      'example-value' => 'config,file',
    ],
    'key-provider-settings' => [
      'description' => dt('Settings specific to the defined key provider, in JSON format.'),
    ],
    'key-input' => [
      'description' => dt('The key input method.'),
      'example-value' => 'none,text_field',
    ],
    'key-input-settings' => [
      'description' => dt('Settings specific to the defined key input, in JSON format.'),
    ],
  ];
}