public function GroupMenuServiceInterface::menuAccess in Group Menu 8
A custom access check for a menu operation.
Parameters
string $op: The operation to perform on the menu.
\Drupal\system\MenuInterface $menu: Run access checks for this menu object.
\Drupal\Core\Session\AccountInterface $account: Run access checks for this account.
Return value
\Drupal\Core\Access\AccessResult The access result.
1 method overrides GroupMenuServiceInterface::menuAccess()
- GroupMenuService::menuAccess in src/
GroupMenuService.php - A custom access check for a menu operation.
File
- src/
GroupMenuServiceInterface.php, line 27
Class
- GroupMenuServiceInterface
- Provides an interface defining a MenuAdminPerMenuAccess manager.
Namespace
Drupal\groupmenuCode
public function menuAccess($op, MenuInterface $menu, AccountInterface $account = NULL);