Legend of the Green Dragon

Navigation extends AbstractExtension
in package
Uses AttributesString, Navigation

Table of Contents

$accessKeys  : mixed
$format  : mixed
$navigation  : mixed
$request  : mixed
$translator  : mixed
__construct()  : mixed
createAttributesString()  : string
Create a string of all attribute/value pairs.
createHeader()  : string|null
Create a header section.
createLink()  : string|null
Create a link for menu.
display()  : string
Display navigation menu.
getFilters()  : mixed
{@inheritdoc}
getFunctions()  : mixed
{@inheritdoc}
getName()  : mixed
{@inheritdoc}
lotgdUrl()  : string
Add a link, but not nav.
showPagination()  : string
Show pagination for a instance of Paginator.
renderPagination()  : string
Render template for pagination.

Properties

Methods

createAttributesString()

Create a string of all attribute/value pairs.

public createAttributesString(array<string|int, mixed> $attributes) : string

Escapes all attribute keys and values

Parameters
$attributes : array<string|int, mixed>
Return values
string

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

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

getFilters()

{@inheritdoc}

public getFilters() : mixed
Return values
mixed

getFunctions()

{@inheritdoc}

public getFunctions() : mixed
Return values
mixed

getName()

{@inheritdoc}

public getName() : mixed
Return values
mixed

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>
Return values
string

Search results