Same name and namespace in other branches
- 8.x-4.x modules/views_slideshow_cycle/src/Commands/ViewsSlideshowCycleCommands.php \Drupal\views_slideshow_cycle\Commands\ViewsSlideshowCycleCommands::downloadJson2()
Download and install the JSON2 library.
@command views:slideshow:json2 @aliases dl-json2,views-slideshow-cycle-json2
1 call to ViewsSlideshowCycleCommands::downloadJson2()
- ViewsSlideshowCycleCommands::downloadLib in modules/
views_slideshow_cycle/ src/ Commands/ ViewsSlideshowCycleCommands.php - Download and install the jQuery Cycle.
File
-
modules/
views_slideshow_cycle/ src/ Commands/ ViewsSlideshowCycleCommands.php, line 35
Class
- ViewsSlideshowCycleCommands
- Drush commands for Views Slideshow Cycle.
Namespace
Drupal\views_slideshow_cycle\CommandsCode
public function downloadJson2() {
$this->installLibrary('JSON2', 'libraries/json2', 'json2.js', 'https://raw.githubusercontent.com/douglascrockford/JSON-js/master/json2.js');
}