public function getMethod()
    {
        if (null !== $this->method) {
            return $this->method;
        }

        // If the form was created from a button rather than the form node, check for HTML5 method override
        if ($this->button !== $this->node && $this->button->getAttribute('formmethod')) {
            return strtoupper($this->button->getAttribute('formmethod'));
        }

        return $this->node->getAttribute('method') ? strtoupper($this->node->getAttribute('method')) : 'GET';
    }
public function getMethod()
    {
        if (null !== $this->method) {
            return $this->method;
        }

        // If the form was created from a button rather than the form node, check for HTML5 method override
        if ($this->button !== $this->node && $this->button->getAttribute('formmethod')) {
            return strtoupper($this->button->getAttribute('formmethod'));
        }

        return $this->node->getAttribute('method') ? strtoupper($this->node->getAttribute('method')) : 'GET';
    }
public function getMethod ( ) { if ( null !== $ this -> method ) { return $ this -> method ; } // If the form was created from a button rather than the form node, check for HTML5 method override if ( $ this -> button !== $ this -> node && $ this -> button -> getAttribute ( 'formmethod' ) ) { return strtoupper ( $ this -> button -> getAttribute ( 'formmethod' ) ) ; } return $ this -> node -> getAttribute ( 'method' ) ? strtoupper ( $ this -> node -> getAttribute ( 'method' ) ) : 'GET' ; }
Gets the form method.

If no method is defined in the form, GET is returned.

@return string The method
Gets the form method .