You are here

function commerce_paypal_update_8101 in Commerce PayPal 8

Install the PayPal Checkout payment method type.

File

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

Code

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