protected function getControl() : Nette\Application\UI\Control { switch ($this->isSubmitted()) { case $this['action']['delete']: return $this->getPresenter(); } return parent::getControl(); }