You are here

function commerce_paypal_update_8102 in Commerce PayPal 8

Install the PayPal Checkout payment method type.

File

./commerce_paypal.install, line 19
Contains install and update functions for Commerce PayPal.

Code

function commerce_paypal_update_8102() {
  $entity_type = \Drupal::entityTypeManager()
    ->getDefinition('commerce_payment_method');
  \Drupal::service('entity.bundle_plugin_installer')
    ->installBundles($entity_type, [
    'commerce_paypal',
  ]);
}