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