/** * {@inheritdoc} */ protected function blockAccess(AccountInterface $account) { if ($this->view->access($this->displayID)) { $access = AccessResult::allowed(); } else { $access = AccessResult::forbidden(); } return $access; }
/** * {@inheritdoc} */ protected function blockAccess(AccountInterface $account) { return $this->view->access($this->displayID); }
/** * {@inheritdoc} */ protected function access() { return $this->view->access($this->displayName); }