Skip to content

Commit

Permalink
Removed old unused processString method
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Aug 26, 2014
1 parent 2935d3c commit 8f9780a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions system/src/Grav/Common/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,24 +181,6 @@ public function processPage(Page $item, $content = null)
return $output;
}

/**
* @param string $string string to render.
* @param array $vars Optional variables
* @return string
*/
public function processString($string, array $vars = array())
{
// override the twig header vars for local resolution
$this->grav->fireEvent('onTwigStringVariables');
$vars += $this->twig_vars;

$name = '@Var:' . $string;
$this->setTemplate($name, $string);
$output = $this->twig->render($name, $vars);

return $output;
}

/**
* Twig process that renders the site layout. This is the main twig process that renders the overall
* page and handles all the layout for the site display.
Expand Down

0 comments on commit 8f9780a

Please sign in to comment.