Determine if the current user has access or not.
Drupal\user\User $account: The user who wants to access this view.
TRUE Returns whether the user has access to the view.
Overrides AccessPluginBase::access
public function access($account) {
return !empty($this->options['access']) && isset($this->view->args[0]) && $this->view->args[0] == state()
->get('test_dynamic_access_argument1') && isset($this->view->args[1]) && $this->view->args[1] == state()
->get('test_dynamic_access_argument2');
}