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;
    }
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;
    }
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 ; }
Custom renders the table page summary.

@return string the rendering result.
@throws \yii\base\InvalidConfigException
Custom renders the table page summary .