src/Pagination/TextualPagination.php
public function getItemsAsArray()
    {
        $items = [];

        foreach ($this->teasers as $page => $teaser) {
            if ($page == $this->intPage) {
                $items[] = [
                    'page' => $page,
                    'href' => null,
                    'title' => null,
                    'text' => $teaser,
                ];
            } else {
                $items[] = [
                    'page' => $page,
                    'href' => $this->linkToPage($page),
                    'title' => StringUtil::specialchars(sprintf($GLOBALS['TL_LANG']['MSC']['goToPage'], $page)),
                    'text' => $teaser,
                ];
            }
        }

        if ($this->singlePageUrl) {
            $items[] = [
                'page' => 'singlePage',
                'href' => $this->singlePageUrl,
                'title' => null,
                'text' => $GLOBALS['TL_LANG']['MSC']['readOnSinglePage'],
            ];
        }

        return $items;
    }
public function getItemsAsArray()
    {
        $items = [];

        foreach ($this->teasers as $page => $teaser) {
            if ($page == $this->intPage) {
                $items[] = [
                    'page' => $page,
                    'href' => null,
                    'title' => null,
                    'text' => $teaser,
                ];
            } else {
                $items[] = [
                    'page' => $page,
                    'href' => $this->linkToPage($page),
                    'title' => StringUtil::specialchars(sprintf($GLOBALS['TL_LANG']['MSC']['goToPage'], $page)),
                    'text' => $teaser,
                ];
            }
        }

        if ($this->singlePageUrl) {
            $items[] = [
                'page' => 'singlePage',
                'href' => $this->singlePageUrl,
                'title' => null,
                'text' => $GLOBALS['TL_LANG']['MSC']['readOnSinglePage'],
            ];
        }

        return $items;
    }
public function getItemsAsArray ( ) { $ items = [ ] ; foreach ( $ this -> teasers as $ page => $ teaser ) { if ( $ page == $ this -> intPage ) { $ items [ ] = [ 'page' => $ page , 'href' => null , 'title' => null , 'text' => $ teaser , ] ; } else { $ items [ ] = [ 'page' => $ page , 'href' => $ this -> linkToPage ( $ page ) , 'title' => StringUtil :: specialchars ( sprintf ( $ GLOBALS [ 'TL_LANG' ] [ 'MSC' ] [ 'goToPage' ] , $ page ) ) , 'text' => $ teaser , ] ; } } if ( $ this -> singlePageUrl ) { $ items [ ] = [ 'page' => 'singlePage' , 'href' => $ this -> singlePageUrl , 'title' => null , 'text' => $ GLOBALS [ 'TL_LANG' ] [ 'MSC' ] [ 'readOnSinglePage' ] , ] ; } return $ items ; }
Generate all page links and return them as array.

@return array The page links as array
Generate all page links and return them as array .