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\PaymentStatusCode
public function paymentStatusIdExists($id) {
return (bool) $this->paymentStatusStorage
->load($id);
}