public function GroupMenuAccess::menuDeleteAccess in Group Menu 8
A custom access check for menu delete page.
Parameters
\Drupal\Core\Session\AccountInterface $account: Run access checks for this account.
\Drupal\system\MenuInterface $menu: Run access checks for this menu object.
Return value
\Drupal\Core\Access\AccessResult The access result.
Overrides GroupMenuAccessInterface::menuDeleteAccess
File
- src/
Access/ GroupMenuAccess.php, line 26
Class
- GroupMenuAccess
- Checks access for displaying menu pages.
Namespace
Drupal\groupmenu\AccessCode
public function menuDeleteAccess(AccountInterface $account, MenuInterface $menu) {
return \Drupal::service('groupmenu.menu')
->menuAccess('delete', $menu, $account);
}