You are here

public function AddPaymentStatus::execute in Payment 8.2

Displays a payment status add form.

Return value

array

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

File

src/Controller/AddPaymentStatus.php, line 50

Class

AddPaymentStatus
Handles the "add payment status" route.

Namespace

Drupal\payment\Controller

Code

public function execute() {
  $payment_status = $this->paymentStatusStorage
    ->create();
  return $this->entityFormBuilder
    ->getForm($payment_status);
}