original_string: public function getAction()
      {
          if ($this->action) {
              return $this->action;
          }
  
          if ($this->isMode(static::MODE_EDIT)) {
              return $this->form->resource().'/'.$this->id;
          }
  
          if ($this->isMode(static::MODE_CREATE)) {
              return $this->form->resource(-1);
          }
  
          return '';
      }
code: public function getAction()
      {
          if ($this->action) {
              return $this->action;
          }
  
          if ($this->isMode(static::MODE_EDIT)) {
              return $this->form->resource().'/'.$this->id;
          }
  
          if ($this->isMode(static::MODE_CREATE)) {
              return $this->form->resource(-1);
          }
  
          return '';
      }
code_tokens: public function getAction ( ) { if ( $ this -> action ) { return $ this -> action ; } if ( $ this -> isMode ( static :: MODE_EDIT ) ) { return $ this -> form -> resource ( ) . '/' . $ this -> id ; } if ( $ this -> isMode ( static :: MODE_CREATE ) ) { return $ this -> form -> resource ( - 1 ) ; } return '' ; }
docstring: Get Form action.
  
  @return string
docstring_tokens: Get Form action .