You are here

function phantomjs_capture_screen in PhantomJS Capture 8

Same name and namespace in other branches
  1. 7 phantomjs_capture.module \phantomjs_capture_screen()

Captures a screen shot using PhantomJS.

Deprecated

will be removed in a future stable release. Use \Drupal\phantomjs_capture\PhantomJSCaptureHelper::capture().

File

./phantomjs_capture.module, line 11

Code

function phantomjs_capture_screen(Url $url, $destination, $filename, $element = NULL) {
  return \Drupal::service('phantomjs_capture.helper')
    ->capture($url, $destination, $filename, $element = NULL);
}