You are here

public function Method::getValueOptions in Ubercart 8.4

Overrides InOperator::getValueOptions().

Overrides InOperator::getValueOptions

File

payment/uc_payment/src/Plugin/views/filter/Method.php, line 19

Class

Method
Filter handler for payment methods.

Namespace

Drupal\uc_payment\Plugin\views\filter

Code

public function getValueOptions() {
  if (!isset($this->valueOptions)) {
    $this->valueOptions = [];
    foreach (uc_payment_method_list() as $id => $method) {
      $this->valueOptions[$id] = $method['name'];
    }
  }
}