interface PhantomJSCaptureHelperInterface in PhantomJS Capture 8
Define an interface for a basic phantomjs helper.
Hierarchy
- interface \Drupal\phantomjs_capture\PhantomJSCaptureHelperInterface
Expanded class hierarchy of PhantomJSCaptureHelperInterface
All classes that implement PhantomJSCaptureHelperInterface
3 files declare their use of PhantomJSCaptureHelperInterface
File
- src/
PhantomJSCaptureHelperInterface.php, line 10
Namespace
Drupal\phantomjs_captureView source
interface PhantomJSCaptureHelperInterface {
/**
* Return whether or not the binary exists at the
* given path on the server.
*
* @param string $path
* @return mixed
*/
public function binaryExists($path);
/**
* Return the version of the phantomjs binary on the
* server.
*
* @return mixed
*/
public function getVersion();
/**
* Perform a capture with PhantomJS.
*
* @param $url
* @param $destination
* @param $filename
* @param null $element
* @return mixed
*/
public function capture(Url $url, $destination, $filename, $element = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PhantomJSCaptureHelperInterface:: |
public | function | Return whether or not the binary exists at the given path on the server. | 1 |
PhantomJSCaptureHelperInterface:: |
public | function | Perform a capture with PhantomJS. | 1 |
PhantomJSCaptureHelperInterface:: |
public | function | Return the version of the phantomjs binary on the server. | 1 |