You are here

function JobState::operators in Translation Management Tool 8

Set the operators.

Return value

array Returns operators.

Overrides ManyToOne::operators

File

src/Plugin/views/filter/JobState.php, line 63

Class

JobState
Filter based on job state.

Namespace

Drupal\tmgmt\Plugin\views\filter

Code

function operators() {
  $operators = array(
    'job_state' => array(
      'title' => $this
        ->t('Job State'),
      'short' => $this
        ->t('job state'),
      'values' => 1,
    ),
  );
  return $operators;
}