original_string: public function url($default = 'home')
      {
          $url = $this->getController()->plugin('url');
          $route = $this->getSession()->route;
          if (null === $route) {
              return $url->fromRoute($default);
          }
          return $url->fromRoute($route->getMatchedRouteName(), 
              $route->getParams());
      }
code: public function url($default = 'home')
      {
          $url = $this->getController()->plugin('url');
          $route = $this->getSession()->route;
          if (null === $route) {
              return $url->fromRoute($default);
          }
          return $url->fromRoute($route->getMatchedRouteName(), 
              $route->getParams());
      }
code_tokens: public function url ( $ default = 'home' ) { $ url = $ this -> getController ( ) -> plugin ( 'url' ) ; $ route = $ this -> getSession ( ) -> route ; if ( null === $ route ) { return $ url -> fromRoute ( $ default ) ; } return $ url -> fromRoute ( $ route -> getMatchedRouteName ( ) , $ route -> getParams ( ) ) ; }
docstring: Get last route URL
  
  @param string $default
docstring_tokens: Get last route URL