You are here

function acsf_theme_drush_command in Acquia Cloud Site Factory Connector 8

Implements hook_drush_command().

File

acsf_theme/acsf_theme.drush.inc, line 11
Provides drush commands for theme change notifications.

Code

function acsf_theme_drush_command() {
  return [
    'acsf-theme-notify' => [
      'description' => dt('Sends a notification to the Factory that a theme event has occurred.'),
      'arguments' => [
        'scope' => dt('The scope of the repository to send a notification for. Possible values are "theme", "site", "group", or "global".'),
      ],
      'options' => [
        'event' => dt('The type of theme event to notify the Factory about. Possible values are "create", "modify", or "delete". Defaults to "modify".'),
        'theme' => dt('The system name of the theme the event relates to. Only relevant for "theme" scope notifications.'),
        'nid' => dt('The node ID of the entity on the Factory the theme change is associated with. The node ID for "site" and "theme" scope notifications is automatically derived from the current site. Explicitly passing the --nid option for "site" and "theme" notifications overrides the one from the current site and should match the site node ID on the Factory. For "group" scope notifications, the nid cannot be automatically derived and is therefore required.'),
      ],
    ],
  ];
}