You are here

commerce_checkout.install in Commerce Core 8.2

Same filename and directory in other branches
  1. 7 modules/checkout/commerce_checkout.install

Contains install and update functions for Checkout.

File

modules/checkout/commerce_checkout.install
View source
<?php

/**
 * @file
 * Contains install and update functions for Checkout.
 */
use Drupal\Core\Session\AccountInterface;

/**
 * Implements hook_install().
 */
function commerce_checkout_install() {

  // Allow all roles to use checkout.
  user_role_grant_permissions(AccountInterface::ANONYMOUS_ROLE, [
    'access checkout',
  ]);
  user_role_grant_permissions(AccountInterface::AUTHENTICATED_ROLE, [
    'access checkout',
  ]);
}

Functions

Namesort descending Description
commerce_checkout_install Implements hook_install().