public function getClickedButton()
    {
        if ($this->clickedButton) {
            return $this->clickedButton;
        }

        if ($this->parent && method_exists($this->parent, 'getClickedButton')) {
            return $this->parent->getClickedButton();
        }
    }
public function getClickedButton()
    {
        if ($this->clickedButton) {
            return $this->clickedButton;
        }

        if ($this->parent && method_exists($this->parent, 'getClickedButton')) {
            return $this->parent->getClickedButton();
        }
    }
public function getClickedButton ( ) { if ( $ this -> clickedButton ) { return $ this -> clickedButton ; } if ( $ this -> parent && method_exists ( $ this -> parent , 'getClickedButton' ) ) { return $ this -> parent -> getClickedButton ( ) ; } }
Returns the button that was used to submit the form.

@return ClickableInterface|null
Returns the button that was used to submit the form .