Method.php in Ubercart 8.4
File
payment/uc_payment/src/Plugin/views/filter/Method.php
View source
<?php
namespace Drupal\uc_payment\Plugin\views\filter;
use Drupal\views\Plugin\views\filter\InOperator;
class Method extends InOperator {
public function getValueOptions() {
if (!isset($this->valueOptions)) {
$this->valueOptions = [];
foreach (uc_payment_method_list() as $id => $method) {
$this->valueOptions[$id] = $method['name'];
}
}
}
}
Classes
Name |
Description |
Method |
Filter handler for payment methods. |