function ForumBlockBase::blockAccess
Same name in other branches
- 9 core/modules/forum/src/Plugin/Block/ForumBlockBase.php \Drupal\forum\Plugin\Block\ForumBlockBase::blockAccess()
- 8.9.x core/modules/forum/src/Plugin/Block/ForumBlockBase.php \Drupal\forum\Plugin\Block\ForumBlockBase::blockAccess()
- 10 core/modules/forum/src/Plugin/Block/ForumBlockBase.php \Drupal\forum\Plugin\Block\ForumBlockBase::blockAccess()
Overrides BlockPluginTrait::blockAccess
File
-
core/
modules/ forum/ src/ Plugin/ Block/ ForumBlockBase.php, line 57
Class
- ForumBlockBase
- Provides a base class for Forum blocks.
Namespace
Drupal\forum\Plugin\BlockCode
protected function blockAccess(AccountInterface $account) {
return AccessResult::allowedIfHasPermission($account, 'access content');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.