Documentation

MenuItemMatcher
in package
implements MenuItemMatcherInterface

Tags
author

Javier Eguiluz javier.eguiluz@gmail.com

Table of Contents

Interfaces

MenuItemMatcherInterface

Properties

$adminContextProvider  : AdminContextProvider

Methods

__construct()  : mixed
isExpanded()  : bool
isSelected()  : bool
filterIrrelevantQueryParameters()  : array<string|int, mixed>
Removes from the given list of query parameters all the parameters that should be ignored when deciding if some menu item matches the current page (such as the applied filters or sorting, the listing page number, etc.).

Properties

Methods

isExpanded()

public isExpanded(MenuItemDto $menuItemDto) : bool
Parameters
$menuItemDto : MenuItemDto
Return values
bool

Returns true when any of the subitems of the menu item is selected

isSelected()

public isSelected(MenuItemDto $menuItemDto) : bool
Parameters
$menuItemDto : MenuItemDto
Return values
bool

Returns true when this menu item is the selected one

filterIrrelevantQueryParameters()

Removes from the given list of query parameters all the parameters that should be ignored when deciding if some menu item matches the current page (such as the applied filters or sorting, the listing page number, etc.).

private filterIrrelevantQueryParameters(array<string|int, mixed> $queryStringParameters, bool $menuItemLinksToIndexCrudAction) : array<string|int, mixed>
Parameters
$queryStringParameters : array<string|int, mixed>
$menuItemLinksToIndexCrudAction : bool
Return values
array<string|int, mixed>

        
On this page

Search results