list template variables in collector as expandable structure

Cette révision appartient à :
Daniel Seifert 2025-03-24 10:53:07 +01:00
Parent f3b9c89cc9
révision 153ce3f5ec

Voir le fichier

@ -22,36 +22,6 @@ use OxidEsales\Eshop\Core\Registry;
class TemplateVariablesCollector extends DataCollector implements Renderable
{
/**
* @var bool
*/
protected $useHtmlVarDumper = true;
/**
* Sets a flag indicating whether the Symfony HtmlDumper will be used to dump variables for
* rich variable rendering.
*
* @param bool $value
* @return $this
*/
public function useHtmlVarDumper($value = true): TemplateVariablesCollector
{
$this->useHtmlVarDumper = $value;
return $this;
}
/**
* Indicates whether the Symfony HtmlDumper will be used to dump variables for rich variable
* rendering.
*
* @return bool
*/
public function isHtmlVarDumperUsed()
{
return $this->useHtmlVarDumper;
}
public function __construct(protected array $templateVariables)
{
}