Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Changelog

TravisCarden edited this page Jan 3, 2015 · 22 revisions
  • Converted to Drupal 8. (Converted persistent variables to state system.)
  • Converted shunts to plugins and moved definitions into YAML files.
  • Added hook_shunts_alter().
  • Replaced drush shunt-get-enabled and drush shunt-get-disabled with drush shunt-list (filterable by --status=<enabled|disabled>).
  • Replaced drush shunt-is-enabled with drush shunt-info.
  • Changed all Drush commands except shunt-list to accept a list of one or more shunts (space-or-comma separated) or the option --all.
  • Replaced Drush shunt name prompts with command completion. (Try drush shunt-enable <TAB>.)
  • Added Drush shunt name wildcard expansion. (Try drush shunt-enable sh\*.)
  • Added support for awesome new Drush command output formats.
  • Prefixed all Drush command aliases with "sh" instead of just "s" for better namespace collision prevention.
  • Replaced hook_shunt_enable() and hook_shunt_disable() with hook_shunt_post_change().
  • Added a new hook_shunt_post_changeset().
  • Updated Drush prompts and confirmation messages to reflect the pattern set by Drush pm commands. e.g.:
$ drush shunt-enable --all
Shunt "shuntexample" is already enabled.                         [ok]
The following shunts will be enabled: shunt
Do you want to continue? (y/n): y
Shunt "shunt" has been enabled.                                  [status]
  • Added a working example page to the Shunt Example module that responds to the "shuntexample" shunt with a fail whale.
  • Added the first unit tests to the module. (Very low coverage so far. Need lots more.)
  • Replaced shunt_is_enabled() with \Drupal::service('plugin.manager.shunt')->shuntIsEnabled('shunt');.
Clone this wiki locally