DebugKit\Controller\PanelsController::view PHP Method

view() public method

View a panel's data.
public view ( string $id = null ) : void
$id string The id.
return void
    public function view($id = null)
    {
        $this->Cookie->configKey('debugKit_sort', 'encryption', false);
        $this->set('sort', $this->Cookie->read('debugKit_sort'));
        $panel = $this->Panels->get($id);
        $this->set('panel', $panel);
        // @codingStandardsIgnoreStart
        $this->set(@unserialize($panel->content));
        // @codingStandardsIgnoreEnd
    }