plugin = $plugin; parent::__construct($plugin->params); } public function collectData(): void { $this->data = $this->plugin->collectDebugData(); } protected function getIcon(): string { $html = ''; if ($this->data) { $html = '' . '' . ''; } return $html; } protected function getTitle(): string { return 'n3t Cookie Consent'; } protected function getPanelBody(): string { $html = ''; foreach($this->data as $name => $value) { $html.= ''; $html.= ''; $html.= ''; $html.= ''; } $html.= '
'.$name.''.\Tracy\Dumper::toHtml($value, array(\Tracy\Dumper::COLLAPSE => true)).'
'; return $html; } }