function google_optimize_hide_page_timeout in Google Optimize 8
The default amount of time Optimize will wait before removing.
The .async-hide class from the <html> element.
Return value
int google_optimize_hide_page_timeout
See also
https://developers.google.com/optimize/#changing_the_timeout
2 calls to google_optimize_hide_page_timeout()
- GoogleOptimizeAdminSettingsForm::buildForm in src/
Form/ GoogleOptimizeAdminSettingsForm.php - Form constructor.
- google_optimize_page_attachments in ./
google_optimize.module - Implements hook_page_attachments().
File
- ./
google_optimize.module, line 74 - google_optimize.module
Code
function google_optimize_hide_page_timeout() {
$config = \Drupal::config('google_optimize.settings');
return (int) $config
->get('hide_page_timeout') ?: 4000;
}