public function setButtonSubmit($submitButton)
    {
        if (\is_string($submitButton)) {
            $this->submitButton = CmsButton::getInstance($submitButton);
        } elseif ($submitButton instanceof CmsButton) {
            $this->submitButton = $submitButton;
        } else {
            throw new InvalidArgumentException('setButtonSubmit parameter type must be String or CmsButton.');
        }

        return $this;
    }
public function setButtonSubmit($submitButton)
    {
        if (\is_string($submitButton)) {
            $this->submitButton = CmsButton::getInstance($submitButton);
        } elseif ($submitButton instanceof CmsButton) {
            $this->submitButton = $submitButton;
        } else {
            throw new InvalidArgumentException('setButtonSubmit parameter type must be String or CmsButton.');
        }

        return $this;
    }
public function setButtonSubmit ( $ submitButton ) { if ( \ is_string ( $ submitButton ) ) { $ this -> submitButton = CmsButton :: getInstance ( $ submitButton ) ; } elseif ( $ submitButton instanceof CmsButton ) { $ this -> submitButton = $ submitButton ; } else { throw new InvalidArgumentException ( 'setButtonSubmit parameter type must be String or CmsButton.' ) ; } return $ this ; }
If ColumnInput is used

@param mixed CmsButton $submitButton or String button title

@return $this
@throws InvalidArgumentException
If ColumnInput is used