You are here

function JobItemState::operators in Translation Management Tool 8

Set the operators.

Return value

array Returns operators.

Overrides ManyToOne::operators

File

src/Plugin/views/filter/JobItemState.php, line 49

Class

JobItemState
Filter based on job item state.

Namespace

Drupal\tmgmt\Plugin\views\filter

Code

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