/** * @param DataCollectorInterface $collector */ public function addCollector(DataCollectorInterface $collector, $panelTemplate = null, $toolbarTemplate = null) { $name = $collector->getName(); $this->data['collectors'][$name] = $collector; $this->data['panelTemplates'][$name] = $panelTemplate; $this->data['toolbarTemplates'][$name] = $toolbarTemplate; }
/** * {@inheritdoc} */ public function add(DataCollectorInterface $collector) { // drupal collector should not be disabled if ($collector->getName() == 'drupal') { parent::add($collector); } else { if ($this->activeToolbarItems && array_key_exists($collector->getName(), $this->activeToolbarItems) && $this->activeToolbarItems[$collector->getName()] !== '0') { parent::add($collector); } } }
/** * Adds a Collector. * * @param DataCollectorInterface $collector A DataCollectorInterface instance */ public function add(DataCollectorInterface $collector) { $this->collectors[$collector->getName()] = $collector; }
/** * Adds a Collector. * * @param DataCollectorInterface $collector * @param string $toolbar * @param string $panel * @param int $priority */ public function add(DataCollectorInterface $collector, $toolbar = null, $panel = null, $priority = 0) { $this->viewCollectorMap[$collector->getName()] = compact('toolbar', 'panel'); $this->order[$collector->getName()] = $priority; parent::add($collector); }