public function UserRegister::init in Production check & Production monitor 8
Initializes the check plugin.
Overrides ProdCheckBase::init
File
- src/
Plugin/ ProdCheck/ Settings/ UserRegister.php, line 33
Class
- UserRegister
- User register settings check
Namespace
Drupal\prod_check\Plugin\ProdCheck\SettingsCode
public function init() {
$this->current = $this->configFactory
->get('user.settings')
->get('register');
$this->options = [
UserInterface::REGISTER_ADMINISTRATORS_ONLY => $this
->t('Administrators only'),
UserInterface::REGISTER_VISITORS => $this
->t('Visitors'),
UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL => $this
->t('Visitors, but administrator approval is required'),
];
}