DebugKit\Routing\Filter\DebugBarFilter::loadedPanels PHP Method

loadedPanels() public method

Get the list of loaded panels
public loadedPanels ( ) : array
return array
    public function loadedPanels()
    {
        return $this->_registry->loaded();
    }

Usage Example

 /**
  * Test loading panels.
  *
  * @return void
  */
 public function testSetupLoadingPanels()
 {
     $bar = new DebugBarFilter($this->events, []);
     $bar->setup();
     $this->assertContains('SqlLog', $bar->loadedPanels());
     $this->assertGreaterThan(1, $this->events->listeners('Controller.shutdown'));
     $this->assertInstanceOf('DebugKit\\Panel\\SqlLogPanel', $bar->panel('SqlLog'));
 }