You are here

public function PhantomJSCaptureInfoController::index in PhantomJS Capture 8

Return basic information about the phantomjs binary, if detected.

Return value

array

1 string reference to 'PhantomJSCaptureInfoController::index'
phantomjs_capture.routing.yml in ./phantomjs_capture.routing.yml
phantomjs_capture.routing.yml

File

src/Controller/PhantomJSCaptureInfoController.php, line 35

Class

PhantomJSCaptureInfoController

Namespace

Drupal\phantomjs_capture\Controller

Code

public function index() {
  $version = $this->captureHelper
    ->getVersion();
  return [
    '#markup' => $this
      ->t('PhantomJS binary detected, version is :version', [
      ':version' => $version,
    ]),
  ];
}