Forum\Controller\Post\DeleteController::getSuccessRedirect PHP Method

getSuccessRedirect() protected method

getSuccessRedirect
protected getSuccessRedirect ( Windwalker\Data\Data $data = null ) : string
$data Windwalker\Data\Data
return string
    protected function getSuccessRedirect(Data $data = null)
    {
        $category = $this->model->getRecord('Category');
        $category->load($this->topic->category_id);
        if ($this->primary) {
            return $this->router->http('category', array('path' => $category->path));
        } else {
            return $this->router->http('topic', array('path' => $category->path, 'id' => $this->topic->id));
        }
    }