API / Minn\Front / Pagination

Pagination final class

Minn\Front\Pagination · public/minn/src/Minn/Front/Pagination.php · 62 lines

Numbered page links in the reference's shape: previous, the end and middle runs with one ellipsis per gap, the current page as a span, next.

Public

staticlinks(array $args, Closure $link): ?array#

The page links the reference's paginate_links builds, or null for one page.

$linkClosure(int): stringthe URL for a page number
@return list<string>|null the link elements, null with fewer than two pages
staticformat(array $links, string $type): array|string#

The links in the requested shape.

$linkslist<string>