/** * return true if the button is clicked * @return bool */ public function isClicked() { if ($this->form->isSubmitted()) { $post = GeneralUtility::_POST($this->form->getIdentifier()); return isset($post[$this->getName()]) && $post[$this->getName()] == $this->getLabel(); } return false; }