public function PaymentGatewayBase::getJsLibrary in Commerce Core 8.2
Gets the JS library ID.
This is usually an external library defined in the module's libraries.yml file. Included by the PaymentInformation pane to get around core bug #1988968. Example: 'commerce_braintree/braintree'.
Return value
string|null The JS library ID, or NULL if not available.
Overrides PaymentGatewayInterface::getJsLibrary
File
- modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ PaymentGatewayBase.php, line 229
Class
- PaymentGatewayBase
- Provides the base class for payment gateways.
Namespace
Drupal\commerce_payment\Plugin\Commerce\PaymentGatewayCode
public function getJsLibrary() {
$js_library = NULL;
if (!empty($this->pluginDefinition['js_library'])) {
$js_library = $this->pluginDefinition['js_library'];
}
return $js_library;
}