You are here

public function FootermapBlock::access in footermap: a footer site map 8

Overrides BlockPluginTrait::access

File

src/Plugin/Block/FootermapBlock.php, line 106

Class

FootermapBlock
Provide a footer-based site map block based on menu items.

Namespace

Drupal\footermap\Plugin\Block

Code

public function access(AccountInterface $account, $return_as_object = FALSE) {
  if ($return_as_object) {
    return AccessResultNeutral::allowed();
  }
  return TRUE;
}