You are here

public function MenuAdminPerMenuAccessInterface::menuLinkAccess in Menu Admin per Menu 8

A custom access check for menu link page.

Parameters

\Drupal\Core\Session\AccountInterface $account: Run access checks for this account.

\Drupal\Core\Menu\MenuLinkInterface $menu_link_plugin: Run access checks for this menu link object.

Return value

\Drupal\Core\Access\AccessResult The access result.

1 method overrides MenuAdminPerMenuAccessInterface::menuLinkAccess()
MenuAdminPerMenuAccess::menuLinkAccess in src/Access/MenuAdminPerMenuAccess.php
A custom access check for menu link page.

File

src/MenuAdminPerMenuAccessInterface.php, line 74

Class

MenuAdminPerMenuAccessInterface
Provides an interface defining a MenuAdminPerMenuAccess manager.

Namespace

Drupal\menu_admin_per_menu

Code

public function menuLinkAccess(AccountInterface $account, MenuLinkInterface $menu_link_plugin = NULL);