You are here

admin_login_path.install in Admin Login Path 8

Same filename and directory in other branches
  1. 2.x admin_login_path.install

File

admin_login_path.install
View source
<?php

/**
 * @file
 * Contains admin_login_path.install.
 */
use Drupal\Core\Session\AccountInterface;

/**
 * Implements hook_install().
 */
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',
  ]);
}

Functions

Namesort descending Description
admin_login_path_install Implements hook_install().