You are here

public function JobType::access in Translation Management Tool 8

Check whether given user has access to this handler.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user account to check.

Return value

bool TRUE if the user has access to the handler, FALSE otherwise.

Overrides HandlerBase::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);
}