You are here

public function WorkflowState::getValueOptions in Workflow 8

Returns the valid options for this State.

Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.

This can use a guard to be used to reduce database hits as much as possible.

Return value

array|null The stored values from $this->valueOptions.

Overrides InOperator::getValueOptions

File

src/Plugin/views/filter/WorkflowState.php, line 44

Class

WorkflowState
Filter handler which uses workflow_state as options.

Namespace

Drupal\workflow\Plugin\views\filter

Code

public function getValueOptions() {
  if (isset($this->valueOptions)) {
    return $this->valueOptions;
  }

  // @todo Implement the below code, and remove the line from init.
  // @todo Follow Options patterns.
  // @see callback_allowed_values_function()
  // @see options_allowed_values()
  return parent::getValueOptions();
}