src/Drupal/functions user.php

Functions

user_access()

user_access(string  $string, ?\Drupal\Core\Session\AccountInterface  $account = null) : bool

Parameters

string $string
?\Drupal\Core\Session\AccountInterface $account

Returns

bool —

user_permission_get_modules()

user_permission_get_modules() : array<string,string>

Returns

array —

user_is_anonymous()

user_is_anonymous() : bool

Returns

bool —

user_is_logged_in()

user_is_logged_in() : bool

Returns

bool —

user_role_load()

user_role_load(string  $rid) : ?\Drupal\user\RoleInterface

Parameters

string $rid

Returns

?\Drupal\user\RoleInterface —

user_role_load_by_name()

user_role_load_by_name(string  $role_name) : \Drupal\user\RoleInterface|false

Parameters

string $role_name

Returns

\Drupal\user\RoleInterface|false —