function SwitchUserBlock::blockAccess
Same name in other branches
- 4.x src/Plugin/Block/SwitchUserBlock.php \Drupal\devel\Plugin\Block\SwitchUserBlock::blockAccess()
Overrides BlockPluginTrait::blockAccess
File
-
src/
Plugin/ Block/ SwitchUserBlock.php, line 68
Class
- SwitchUserBlock
- Provides a block for switching users.
Namespace
Drupal\devel\Plugin\BlockCode
protected function blockAccess(AccountInterface $account) {
return AccessResult::allowedIfHasPermission($account, 'switch users');
}