Skip to main content

PaginationControl

Helper for rendering pagination


  • Full name: \TwbsHelper\View\Helper\PaginationControl
  • Parent class: PaginationControl

Constants

ConstantVisibilityTypeValue
SWAP_OUT_STATEpublic'swap_out'

Properties

defaultViewPartial

Default view partial

protected static string|array $defaultViewPartial
  • This property is static.

Methods

renderPageItem

public renderPageItem(mixed $route, int $page, ?int $current = null, mixed $activeStates = null): string

Parameters:

ParameterTypeDescription
$routemixed
$pageint
$current?int
$activeStatesmixed

renderNavigationItem

public renderNavigationItem(mixed $route, mixed $link, ?int $linkPage = null, mixed $disabledStates = false): string

Parameters:

ParameterTypeDescription
$routemixed
$linkmixed
$linkPage?int
$disabledStatesmixed

protected renderLink(string $content, iterable $attributes, bool $swapout): mixed

Parameters:

ParameterTypeDescription
$contentstring
$attributesiterable
$swapoutbool

translate

protected translate(string $content): string

Parameters:

ParameterTypeDescription
$contentstring