You are here

constant RoleInterface::ANONYMOUS_ID in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::ANONYMOUS_ID
  2. 10 core/modules/user/src/RoleInterface.php \Drupal\user\RoleInterface::ANONYMOUS_ID

Role ID for anonymous users; should match the 'role' entity ID.

File

core/modules/user/src/RoleInterface.php, line 18

Class

RoleInterface
Provides an interface defining a user role entity.

Namespace

Drupal\user

Code

const ANONYMOUS_ID = AccountInterface::ANONYMOUS_ROLE;