You are here

public function ViewPaymentsByOwner::execute in Payment 8.2

Executes the route.

Parameters

\Drupal\user\UserInterface $user:

Return value

array A render array.

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

File

src/Controller/ViewPaymentsByOwner.php, line 60

Class

ViewPaymentsByOwner
Handles the "view payments by owner" route.

Namespace

Drupal\payment\Controller

Code

public function execute(UserInterface $user) {
  $this->paymentListBuilder
    ->restrictByOwnerId($user
    ->id());
  return $this->paymentListBuilder
    ->render();
}