public function CasPreRegisterEvent::setAllowAutomaticRegistration in CAS 8
Same name and namespace in other branches
- 2.x src/Event/CasPreRegisterEvent.php \Drupal\cas\Event\CasPreRegisterEvent::setAllowAutomaticRegistration()
Sets the allow auto registration proprety.
Parameters
bool $allow_automatic_registration: TRUE to allow auto registration, FALSE to deny it.
File
- src/
Event/ CasPreRegisterEvent.php, line 107
Class
- CasPreRegisterEvent
- Class CasPreRegisterEvent.
Namespace
Drupal\cas\EventCode
public function setAllowAutomaticRegistration($allow_automatic_registration) {
if ($allow_automatic_registration) {
$this->allowAutomaticRegistration = TRUE;
}
else {
$this->allowAutomaticRegistration = FALSE;
}
}