You are here

function admin_login_path_install in Admin Login Path 8

Same name and namespace in other branches
  1. 2.x admin_login_path.install \admin_login_path_install()

Implements hook_install().

File

./admin_login_path.install, line 13
Contains admin_login_path.install.

Code

function admin_login_path_install() {

  // Allow anon users to use the admin theme.
  user_role_grant_permissions(AccountInterface::ANONYMOUS_ROLE, [
    'view the administration theme',
  ]);
  user_role_grant_permissions(AccountInterface::AUTHENTICATED_ROLE, [
    'view the administration theme',
  ]);
}