admin_login_path.install in Admin Login Path 2.x
Same filename and directory in other branches
Contains admin_login_path.install.
File
admin_login_path.installView 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
Name | Description |
---|---|
admin_login_path_install | Implements hook_install(). |