Navigation
Trait to navigation display.
Table of Contents
- createHeader() : string|null
- Create a header section.
- createLink() : string|null
- Create a link for menu.
- display() : string
- Display navigation menu.
- lotgdUrl() : string
- Add a link, but not nav.
- showPagination() : string
- Show pagination for a instance of Paginator.
- renderPagination() : string
- Render template for pagination.
Methods
createHeader()
Create a header section.
public
createHeader(string $label, array<string|int, mixed> $options) : string|null
Parameters
- $label : string
- $options : array<string|int, mixed>
Return values
string|null —createLink()
Create a link for menu.
public
createLink(string $label, array<string|int, mixed> $options) : string|null
Parameters
- $label : string
- $options : array<string|int, mixed>
Return values
string|null —display()
Display navigation menu.
public
display(Environment $env) : string
Parameters
- $env : Environment
Return values
string —lotgdUrl()
Add a link, but not nav.
public
lotgdUrl(string $link) : string
Parameters
- $link : string
Return values
string —showPagination()
Show pagination for a instance of Paginator.
public
showPagination(Environment $env, Paginator $paginator[, string|null $link = null ][, string|array<string|int, mixed>|null $template = null ][, string|null $scrollingStyle = null ][, array<string|int, mixed>|null $params = null ]) : string
Parameters
- $env : Environment
- $paginator : Paginator
- $link : string|null = null
-
Url to use in href atribute in links
- $template : string|array<string|int, mixed>|null = null
-
You can change the template for your own if you need it at a specific time For render a block use array ['block_name', 'path/to/template']
- $scrollingStyle : string|null = null
-
Options: All, Elastic, Jumping, Sliding. Default is Sliding
- $params : array<string|int, mixed>|null = null
Return values
string —renderPagination()
Render template for pagination.
protected
renderPagination(Environment $env, string|array<string|int, mixed>|null $template, array<string|int, mixed> $pages) : string
Parameters
- $env : Environment
- $template : string|array<string|int, mixed>|null
- $pages : array<string|int, mixed>