function NavigationShortcutsBlock::blockAccess

Same name in other branches
  1. 10 core/modules/navigation/src/Plugin/Block/NavigationShortcutsBlock.php \Drupal\navigation\Plugin\Block\NavigationShortcutsBlock::blockAccess()

Overrides BlockPluginTrait::blockAccess

File

core/modules/navigation/src/Plugin/Block/NavigationShortcutsBlock.php, line 61

Class

NavigationShortcutsBlock
Defines a shortcuts navigation block class.

Namespace

Drupal\navigation\Plugin\Block

Code

protected function blockAccess(AccountInterface $account) : AccessResultInterface {
    return AccessResult::allowedIfHasPermission($account, 'access shortcuts');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.