You are here

public function PaymentMethodConfigurationForm::paymentMethodConfigurationIdExists in Payment 8.2

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

Parameters

string $id:

Return value

bool

File

src/Entity/PaymentMethodConfiguration/PaymentMethodConfigurationForm.php, line 178

Class

PaymentMethodConfigurationForm
Provides the payment method configuration form.

Namespace

Drupal\payment\Entity\PaymentMethodConfiguration

Code

public function paymentMethodConfigurationIdExists($id) {
  return (bool) $this->paymentMethodConfigurationStorage
    ->load($id);
}