You are here

public function ListPaymentStatuses::execute in Payment 8.2

Lists all payment statuses.

Return value

array A render array.

1 string reference to 'ListPaymentStatuses::execute'
payment.routing.yml in ./payment.routing.yml
payment.routing.yml

File

src/Controller/ListPaymentStatuses.php, line 58

Class

ListPaymentStatuses
Handles the "list payment methods" route.

Namespace

Drupal\payment\Controller

Code

public function execute() {
  return [
    '#header' => [
      $this
        ->t('Title'),
      $this
        ->t('Description'),
      $this
        ->t('Operations'),
    ],
    '#type' => 'table',
  ] + $this
    ->buildListingLevel($this
    ->buildHierarchy(), 0);
}