You are here

public static function JobState::getOptions in Advanced Queue 8

Gets the available state options.

Return value

array The state options.

1 call to JobState::getOptions()
JobState::render in src/Plugin/views/field/JobState.php
Renders the field.

File

src/Plugin/views/field/JobState.php, line 71

Class

JobState
Field handler to render the job state.

Namespace

Drupal\advancedqueue\Plugin\views\field

Code

public static function getOptions() {
  return [
    Job::STATE_QUEUED => new TranslatableMarkup('Queued'),
    Job::STATE_PROCESSING => new TranslatableMarkup('Processing'),
    Job::STATE_SUCCESS => new TranslatableMarkup('Success'),
    Job::STATE_FAILURE => new TranslatableMarkup('Failure'),
  ];
}