public static function PopupOnLoadSettingsForm::popupOnLoadGetDefaults in Popup On Load 8
Configs getter with default value.
5 calls to PopupOnLoadSettingsForm::popupOnLoadGetDefaults()
- PopupOnLoadSettingsForm::buildForm in src/
Form/ PopupOnLoadSettingsForm.php - Defines the settings form for Popup On Load entities.
- popup_onload_check_time_cookie in ./
popup_onload.module - Check if popup_onload cookie is set.
- popup_onload_choose_popup in ./
popup_onload.module - Load the current popup using current choose method.
- popup_onload_prepare_popup in ./
popup_onload.module - Generate Javascript parameters for popup.
- popup_onload_save_time_cookie in ./
popup_onload.module - Save popup display time into the cookie.
File
- src/
Form/ PopupOnLoadSettingsForm.php, line 114
Class
- PopupOnLoadSettingsForm
- Class PopupOnLoadSettingsForm.
Namespace
Drupal\popup_onload\FormCode
public static function popupOnLoadGetDefaults($key, $default) {
$configs = \Drupal::config('popup_onload.settings');
$config = $configs
->get($key);
return isset($config) ? $config : $default;
}