Install

Works with Drupal: 8.x

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 18.26 KB
MD5: 43bc2baac04369fed08c15f2d87d7971
SHA-1: 55d5e2754ebf09efaed2ffa933a141c1ee3c13ca
SHA-256: 3c36c40b541d6ae510b204f0f06a9a6afc9e6b6326b7f6b4b03a3cdbb4c81543
Download zip 27.42 KB
MD5: 7179a1e515dd3c9ab4e0ddc6706e1701
SHA-1: 0ec901945bb78356e0d30a6592a1ba752e4e944b
SHA-256: 86d237f146d6300166510c8bcc5b7f90de97a4595dbd5e00dbdd564f985eae1c

Release notes

The first 8.x release of Shunt module, compatible with Drupal 8.0.0-beta4:

  • 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');.
  • Created by: traviscarden
    Created on: 3 Jan 2015 at 22:36 UTC
    Last updated: 30 Jan 2015 at 04:43 UTC
    New features
    Unsupported

    Other releases