function commerce_checkout_install in Commerce Core 8.2
Implements hook_install().
File
- modules/
checkout/ commerce_checkout.install, line 13 - Contains install and update functions for Checkout.
Code
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',
]);
}