protected static function MultipleRegistrationController::useRegistrationPage in Multiple Registration 8
Same name and namespace in other branches
- 8.2 src/Controller/MultipleRegistrationController.php \Drupal\multiple_registration\Controller\MultipleRegistrationController::useRegistrationPage()
- 3.x src/Controller/MultipleRegistrationController.php \Drupal\multiple_registration\Controller\MultipleRegistrationController::useRegistrationPage()
Checks whether there're special registration pages for any of given roles.
Parameters
array $roles: Array of role IDs.
Return value
bool Whether there is a special registration form available for at least one of given roles.
1 call to MultipleRegistrationController::useRegistrationPage()
- MultipleRegistrationController::checkFieldAccess in src/
Controller/ MultipleRegistrationController.php - Check is field available for role.
File
- src/
Controller/ MultipleRegistrationController.php, line 304
Class
- MultipleRegistrationController
- Class MultipleRegistrationController.
Namespace
Drupal\multiple_registration\ControllerCode
protected static function useRegistrationPage(array $roles) {
$pages_config = \Drupal::configFactory()
->get('multiple_registration.create_registration_page_form_config');
foreach ($roles as $rid) {
if ($pages_config
->get('multiple_registration_url_' . $rid)) {
return TRUE;
}
}
return FALSE;
}