You are here

public function BasePhantomJSDriver::javascriptTemplateRender in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/jcalderonzumba/mink-phantomjs-driver/src/BasePhantomJSDriver.php \Zumba\Mink\Driver\BasePhantomJSDriver::javascriptTemplateRender()

Returns a javascript script via twig template engine

Parameters

$templateName:

$viewData:

Return value

string

File

vendor/jcalderonzumba/mink-phantomjs-driver/src/BasePhantomJSDriver.php, line 103

Class

BasePhantomJSDriver
Class BasePhantomJSDriver @package Zumba\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

public function javascriptTemplateRender($templateName, $viewData) {

  /** @var $templateEngine \Twig_Environment */
  $templateEngine = $this
    ->getTemplateEnv();
  return $templateEngine
    ->render($templateName, $viewData);
}