public static function LogintobogganUtility::trustedRole in LoginToboggan 8
Returns the trusted role setting.
Return value
array|mixed|null Role set as trusted.
8 calls to LogintobogganUtility::trustedRole()
- LogintobogganProfileForm::form in src/
Form/ LogintobogganProfileForm.php - Gets the actual form array to be built.
- LogintobogganProfileForm::save in src/
Form/ LogintobogganProfileForm.php - Save form.
- LogintobogganProfileForm::validateForm in src/
Form/ LogintobogganProfileForm.php - Validate form.
- LogintobogganUtility::processValidation in src/
Utility/ LogintobogganUtility.php - Add trusted role to new user when validating from an email link.
- logintoboggan_cron in ./
logintoboggan.module - Implements hook_cron().
File
- src/
Utility/ LogintobogganUtility.php, line 22
Class
- LogintobogganUtility
- Class for utility methods.
Namespace
Drupal\logintoboggan\UtilityCode
public static function trustedRole() {
return \Drupal::config('logintoboggan.settings')
->get('trusted_role');
}