DebugKit\Controller\PanelsController::index PHP Method

index() public method

Index method that lets you get requests by panelid.
public index ( string $requestId = null ) : void
$requestId string Request id
return void
    public function index($requestId = null)
    {
        $query = $this->Panels->find('byRequest', ['requestId' => $requestId]);
        $panels = $query->toArray();
        if (empty($panels)) {
            throw new NotFoundException();
        }
        $this->set(['_serialize' => ['panels'], 'panels' => $panels]);
    }