public function ModerationDashboard::access in Moderation Dashboard 2.0.x
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/ ModerationDashboard.php, line 27
Class
- ModerationDashboard
- Access plugin that provides access control for Scheduler.
Namespace
Drupal\moderation_dashboard\Plugin\views\accessCode
public function access(AccountInterface $account) {
return \Drupal::service('moderation_dashboard.access_checker')
->access($account);
}