show current view template in Smarty tab

This commit is contained in:
Daniel Seifert 2022-08-03 09:57:02 +02:00
parent 0d4662edf5
commit 48ba33562e
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F

View File

@ -17,6 +17,7 @@ namespace D3\DebugBar\Application\Models\Collectors;
use DebugBar\DataCollector\DataCollector; use DebugBar\DataCollector\DataCollector;
use DebugBar\DataCollector\Renderable; use DebugBar\DataCollector\Renderable;
use OxidEsales\Eshop\Core\Registry;
use Smarty; use Smarty;
class SmartyCollector extends DataCollector implements Renderable class SmartyCollector extends DataCollector implements Renderable
@ -67,7 +68,7 @@ class SmartyCollector extends DataCollector implements Renderable
*/ */
public function collect(): array public function collect(): array
{ {
$data = []; $data = ['current view template' => Registry::getConfig()->getTopActiveView()->getTemplateName()];
$vars = $this->smarty->get_template_vars(); $vars = $this->smarty->get_template_vars();