function ShortcutNavigationBlock::blockAccess

Same name and namespace in other branches
  1. 11.x core/modules/shortcut/src/Plugin/Block/ShortcutNavigationBlock.php \Drupal\shortcut\Plugin\Block\ShortcutNavigationBlock::blockAccess()

File

core/modules/shortcut/src/Plugin/Block/ShortcutNavigationBlock.php, line 46

Class

ShortcutNavigationBlock
Defines a shortcuts navigation block class.

Namespace

Drupal\shortcut\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.