DRUPAL_ANONYMOUS_RID

Same name in other branches
  1. 7.x 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

Code

const DRUPAL_ANONYMOUS_RID = AccountInterface::ANONYMOUS_ROLE;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.