UserInterface::REGISTER_ADMINISTRATORS_ONLY

Same name in other branches
  1. 8.9.x core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY
  2. 10 core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY
  3. 11.x core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY

Only administrators can create user accounts.

File

core/modules/user/src/UserInterface.php, line 26

Class

UserInterface
Provides an interface defining a user entity.

Namespace

Drupal\user

Code

const REGISTER_ADMINISTRATORS_ONLY = 'admin_only';

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