MenuItemMatcher
in package
implements
MenuItemMatcherInterface
Tags
Table of Contents
Interfaces
Properties
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
$adminContextProvider
private
AdminContextProvider
$adminContextProvider
Methods
__construct()
public
__construct(AdminContextProvider $adminContextProvider) : mixed
Parameters
- $adminContextProvider : AdminContextProvider
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