You are here

public static function Payment::getWorkflowId in Commerce Core 8.2

Gets the workflow ID for the state field.

Parameters

\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.

Return value

string The workflow ID.

File

modules/payment/src/Entity/Payment.php, line 493

Class

Payment
Defines the payment entity class.

Namespace

Drupal\commerce_payment\Entity

Code

public static function getWorkflowId(PaymentInterface $payment) {
  return $payment
    ->getType()
    ->getWorkflowId();
}