public function JobType::access

File

src/Plugin/views/filter/JobType.php, line 68

Class

JobType
Filter based on job type.

Namespace

Drupal\tmgmt\Plugin\views\filter

Code

public function access(AccountInterface $account) {
  if ($this->options['expose']['hide_no_continuous'] && !$this->continuousManager
    ->hasContinuousJobs()) {
    return FALSE;
  }
  return parent::access($account);
}