You are here

public function ClipboardJsCommands::download in Clipboard.js 8

Same name and namespace in other branches
  1. 2.0.x src/Commands/ClipboardJsCommands.php \Drupal\clipboardjs\Commands\ClipboardJsCommands::download()

Command to download and extract the library.

@usage clipboardjs-download Download the library

@command clipboardjs:download @aliases cbd

File

src/Commands/ClipboardJsCommands.php, line 31

Class

ClipboardJsCommands
Drush commandfile.

Namespace

Drupal\clipboardjs\Commands

Code

public function download() {
  $this
    ->logger()
    ->notice('Downloading library...');
  $this
    ->downloadLibrary(self::LIBRARY_DOWNLOAD_URL, self::LIBRARY_DOWNLOAD_DESTINATION);
}