constant DRUPAL_ANONYMOUS_RID in Drupal 8
Same name and namespace in other branches
- 4 includes/bootstrap.inc \DRUPAL_ANONYMOUS_RID
- 5 includes/bootstrap.inc \DRUPAL_ANONYMOUS_RID
- 6 includes/bootstrap.inc \DRUPAL_ANONYMOUS_RID
- 7 includes/bootstrap.inc \DRUPAL_ANONYMOUS_RID
Role ID for anonymous users; should match what's in the "role" table.
Deprecated
in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Core\Session\AccountInterface::ANONYMOUS_ROLE or \Drupal\user\RoleInterface::ANONYMOUS_ID instead.
See also
https://www.drupal.org/node/1619504
File
- core/
includes/ bootstrap.inc, line 106 - Functions that need to be loaded on every Drupal request.
Code
const DRUPAL_ANONYMOUS_RID = AccountInterface::ANONYMOUS_ROLE;