Forum\Controller\Category\DeleteController::prepareExecute PHP Method

prepareExecute() protected method

prepareExecute
protected prepareExecute ( ) : void
return void
    protected function prepareExecute()
    {
        parent::prepareExecute();
        if (isset($this->pks)) {
            $this->id = $this->pks;
        }
        $this->parent = $this->model->getRecord('Category');
        $this->record->load($this->id);
        $this->parent->load($this->record->parent_id);
    }