original_string: public function urlExtension()
      {
          if ($this->home()) {
              return '';
          }
  
          // if not set in the page get the value from system config
          if (null === $this->url_extension) {
              $this->url_extension = Grav::instance()['config']->get('system.pages.append_url_extension', '');
          }
  
          return $this->url_extension;
      }
code: public function urlExtension()
      {
          if ($this->home()) {
              return '';
          }
  
          // if not set in the page get the value from system config
          if (null === $this->url_extension) {
              $this->url_extension = Grav::instance()['config']->get('system.pages.append_url_extension', '');
          }
  
          return $this->url_extension;
      }
code_tokens: public function urlExtension ( ) { if ( $ this -> home ( ) ) { return '' ; } // if not set in the page get the value from system config if ( null === $ this -> url_extension ) { $ this -> url_extension = Grav :: instance ( ) [ 'config' ] -> get ( 'system.pages.append_url_extension' , '' ) ; } return $ this -> url_extension ; }
docstring: Returns the page extension, got from the page `url_extension` config and falls back to the
  system config `system.pages.append_url_extension`.
  
  @return string      The extension of this page. For example `.html`
docstring_tokens: Returns the page extension got from the page url_extension config and falls back to the system config system . pages . append_url_extension .