public function isSubmitted(Request $request)
    {
        $arguments = $this->method === "GET" ? $request->get : $request->post;

        // Check if the form has been submitted at all
        return $this->method === $request->method && $arguments['_form_name'] === $this->name;
    }
public function isSubmitted(Request $request)
    {
        $arguments = $this->method === "GET" ? $request->get : $request->post;

        // Check if the form has been submitted at all
        return $this->method === $request->method && $arguments['_form_name'] === $this->name;
    }
public function isSubmitted ( Request $ request ) { $ arguments = $ this -> method === "GET" ? $ request -> get : $ request -> post ; // Check if the form has been submitted at all return $ this -> method === $ request -> method && $ arguments [ '_form_name' ] === $ this -> name ; }
Check if the form has been submitted
@return bool True if the form was submitted, false if not
Check if the form has been submitted