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'
File
- src/
Controller/ ViewPaymentsByOwner.php, line 60
Class
- ViewPaymentsByOwner
- Handles the "view payments by owner" route.
Namespace
Drupal\payment\ControllerCode
public function execute(UserInterface $user) {
$this->paymentListBuilder
->restrictByOwnerId($user
->id());
return $this->paymentListBuilder
->render();
}