original_string: public function maintenance_mode_warning($maintenancemode) {
          if (!$maintenancemode) {
              return '';
          }
  
          $url = new moodle_url('/admin/settings.php', array('section' => 'maintenancemode'));
          $url = $url->out(); // get_string() does not support objects in params
  
          return $this->warning(get_string('sitemaintenancewarning2', 'admin', $url));
      }
code: public function maintenance_mode_warning($maintenancemode) {
          if (!$maintenancemode) {
              return '';
          }
  
          $url = new moodle_url('/admin/settings.php', array('section' => 'maintenancemode'));
          $url = $url->out(); // get_string() does not support objects in params
  
          return $this->warning(get_string('sitemaintenancewarning2', 'admin', $url));
      }
code_tokens: public function maintenance_mode_warning ( $ maintenancemode ) { if ( ! $ maintenancemode ) { return '' ; } $ url = new moodle_url ( '/admin/settings.php' , array ( 'section' => 'maintenancemode' ) ) ; $ url = $ url -> out ( ) ; // get_string() does not support objects in params return $ this -> warning ( get_string ( 'sitemaintenancewarning2' , 'admin' , $ url ) ) ; }
docstring: Render an appropriate message if the site in in maintenance mode.
  @param bool $maintenancemode
  @return string HTML to output.
docstring_tokens: Render an appropriate message if the site in in maintenance mode .