protected function ApplyForRoleAdminForm::get_setting in Apply for role 8
Helper function to get default settings.
Parameters
$key: Config value key to attempt to find default for.
mixed $default: Whatever default value you desire if no config value exists.
object $config: Loaded config object for module
Return value
mixed Returns either config value or default in whatever format it may be in.
1 call to ApplyForRoleAdminForm::get_setting()
- ApplyForRoleAdminForm::buildForm in src/
Form/ ApplyForRoleAdminForm.php - Form constructor.
File
- src/
Form/ ApplyForRoleAdminForm.php, line 238
Class
Namespace
Drupal\apply_for_role\FormCode
protected function get_setting($key, $default, $config) {
return $config
->get($key) ? $config
->get($key) : $default;
}