Added getCurrentTokenTree to get a token's tree within a helper

This commit is contained in:
Jeff Turcotte 2014-11-10 15:03:58 -05:00
parent e863d7af80
commit 9eb7f952d2

View File

@ -128,6 +128,18 @@ class Template
return $topStack[2];
}
/**
* Get the current token's tree
*
* @return array
*/
public function getCurrentTokenTree()
{
$topStack = end($this->_stack);
return $topStack[1];
}
/**
* Render top tree
*