You are here

public function Scheduler::access in Scheduler 8

Same name and namespace in other branches
  1. 2.x src/Plugin/views/access/Scheduler.php \Drupal\scheduler\Plugin\views\access\Scheduler::access()

Determine if the current user has access or not.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user who wants to access this view.

Return value

bool Returns whether the user has access to the view.

Overrides AccessPluginBase::access

File

src/Plugin/views/access/Scheduler.php, line 27

Class

Scheduler
Access plugin that provides access control for Scheduler.

Namespace

Drupal\scheduler\Plugin\views\access

Code

public function access(AccountInterface $account) {
  return \Drupal::service('access_checker.scheduler_content')
    ->access($account);
}