You are here

public function ContactInfoBlock::access in Brainstorm profile 8

Overrides BlockPluginTrait::access

File

module/custom/adci_contact_info/src/Plugin/Block/ContactInfoBlock.php, line 64

Class

ContactInfoBlock
Provides an contact info block.

Namespace

Drupal\adci_contact_info\Plugin\Block

Code

public function access(AccountInterface $account, $return_as_object = FALSE) {
  $permissions = [
    'administer site configuration',
  ];
  return AccessResult::allowedIfHasPermissions($account, $permissions, 'OR');
}