コード例 #1
0
ファイル: ViewsBlockBase.php プロジェクト: nstielau/drops-8
 /**
  * {@inheritdoc}
  */
 protected function blockAccess(AccountInterface $account)
 {
     if ($this->view->access($this->displayID)) {
         $access = AccessResult::allowed();
     } else {
         $access = AccessResult::forbidden();
     }
     return $access;
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 protected function blockAccess(AccountInterface $account)
 {
     return $this->view->access($this->displayID);
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 protected function access()
 {
     return $this->view->access($this->displayName);
 }