commerce_checkout.install in Commerce Core 8.2
Same filename and directory in other branches
Contains install and update functions for Checkout.
File
modules/checkout/commerce_checkout.installView 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
Name | Description |
---|---|
commerce_checkout_install | Implements hook_install(). |