original_string: public function renderPageSummary()
      {
          $content = parent::renderPageSummary();
  
          if ($this->showCustomPageSummary) {
              if (!$content) {
                  $content = "<tfoot></tfoot>";
              }
  
              if ($this->beforeSummary) {
                  foreach ($this->beforeSummary as &$row) {
                      if (!isset($row['options'])) {
                          $row['options'] = $this->pageSummaryRowOptions;
                      }
                  }
              }
  
              if ($this->afterSummary) {
                  foreach ($this->afterSummary as &$row) {
                      if (!isset($row['options'])) {
                          $row['options'] = $this->pageSummaryRowOptions;
                      }
                  }
              }
  
              return strtr(
                  $content,
                  [
                      '<tfoot>' => "<tfoot>\n" . parent::generateRows($this->beforeSummary),
                      '</tfoot>' => parent::generateRows($this->afterSummary) . "\n</tfoot>",
                  ]
              );
          }
  
          return $content;
      }
code: public function renderPageSummary()
      {
          $content = parent::renderPageSummary();
  
          if ($this->showCustomPageSummary) {
              if (!$content) {
                  $content = "<tfoot></tfoot>";
              }
  
              if ($this->beforeSummary) {
                  foreach ($this->beforeSummary as &$row) {
                      if (!isset($row['options'])) {
                          $row['options'] = $this->pageSummaryRowOptions;
                      }
                  }
              }
  
              if ($this->afterSummary) {
                  foreach ($this->afterSummary as &$row) {
                      if (!isset($row['options'])) {
                          $row['options'] = $this->pageSummaryRowOptions;
                      }
                  }
              }
  
              return strtr(
                  $content,
                  [
                      '<tfoot>' => "<tfoot>\n" . parent::generateRows($this->beforeSummary),
                      '</tfoot>' => parent::generateRows($this->afterSummary) . "\n</tfoot>",
                  ]
              );
          }
  
          return $content;
      }
code_tokens: public function renderPageSummary ( ) { $ content = parent :: renderPageSummary ( ) ; if ( $ this -> showCustomPageSummary ) { if ( ! $ content ) { $ content = "<tfoot></tfoot>" ; } if ( $ this -> beforeSummary ) { foreach ( $ this -> beforeSummary as & $ row ) { if ( ! isset ( $ row [ 'options' ] ) ) { $ row [ 'options' ] = $ this -> pageSummaryRowOptions ; } } } if ( $ this -> afterSummary ) { foreach ( $ this -> afterSummary as & $ row ) { if ( ! isset ( $ row [ 'options' ] ) ) { $ row [ 'options' ] = $ this -> pageSummaryRowOptions ; } } } return strtr ( $ content , [ '<tfoot>' => "<tfoot>\n" . parent :: generateRows ( $ this -> beforeSummary ) , '</tfoot>' => parent :: generateRows ( $ this -> afterSummary ) . "\n</tfoot>" , ] ) ; } return $ content ; }
docstring: Custom renders the table page summary.
  
  @return string the rendering result.
  @throws \yii\base\InvalidConfigException
docstring_tokens: Custom renders the table page summary .