You are here

public function PaymentStatusForm::paymentStatusIdExists in Payment 8.2

Checks if a payment status with a particular ID already exists.

Parameters

string $id:

Return value

bool

File

src/Entity/PaymentStatus/PaymentStatusForm.php, line 155

Class

PaymentStatusForm
Provides the payment status add/edit form.

Namespace

Drupal\payment\Entity\PaymentStatus

Code

public function paymentStatusIdExists($id) {
  return (bool) $this->paymentStatusStorage
    ->load($id);
}