original_string: public function routeCanonical($var = null)
      {
          if ($var !== null) {
              $this->routes['canonical'] = $var;
          }
  
          if (!empty($this->routes) && isset($this->routes['canonical'])) {
              return $this->routes['canonical'];
          }
  
          return $this->route();
      }
code: public function routeCanonical($var = null)
      {
          if ($var !== null) {
              $this->routes['canonical'] = $var;
          }
  
          if (!empty($this->routes) && isset($this->routes['canonical'])) {
              return $this->routes['canonical'];
          }
  
          return $this->route();
      }
code_tokens: public function routeCanonical ( $ var = null ) { if ( $ var !== null ) { $ this -> routes [ 'canonical' ] = $ var ; } if ( ! empty ( $ this -> routes ) && isset ( $ this -> routes [ 'canonical' ] ) ) { return $ this -> routes [ 'canonical' ] ; } return $ this -> route ( ) ; }
docstring: Gets the canonical route for this page if its set. If provided it will use
  that value, else if it's `true` it will use the default route.
  
  @param null $var
  
  @return bool|string
docstring_tokens: Gets the canonical route for this page if its set . If provided it will use that value else if it s true it will use the default route .