You are here

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

A custom access check for menu page and add link page.

Parameters

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

\Drupal\system\Entity\Menu $menu: Run access checks for this menu object.

Return value

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

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

File

src/MenuAdminPerMenuAccessInterface.php, line 48

Class

MenuAdminPerMenuAccessInterface
Provides an interface defining a MenuAdminPerMenuAccess manager.

Namespace

Drupal\menu_admin_per_menu

Code

public function menuAccess(AccountInterface $account, Menu $menu);