You are here

class ViewsSort in Commerce Invoice 7.2

Hierarchy

  • class \Drupal\commerce_invoice\InvoiceNumber\ViewsSort extends \Drupal\commerce_invoice\InvoiceNumber\views_handler_sort

Expanded class hierarchy of ViewsSort

File

src/InvoiceNumber/ViewsSort.php, line 9
Provides views sort handler for invoice numbers.

Namespace

Drupal\commerce_invoice\InvoiceNumber
View source
class ViewsSort extends \views_handler_sort {

  /**
   * {@inheritdoc}
   */
  public function query() {
    $this
      ->ensure_my_table();
    $this->query
      ->add_orderby($this->table_alias, 'number_pattern', $this->options['order']);
    $this->query
      ->add_orderby($this->table_alias, 'number_key', $this->options['order']);
    $this->query
      ->add_orderby($this->table_alias, 'number_sequence', $this->options['order']);
  }

}

Members