/** * If current request is targeted to modal dialog * @return bool */ public function isRequested() { return $this->presenter->isAjax() and $this->presenter->getParameter('_target', null) == "modal"; }