function google_optimize_hide_page_enabled in Google Optimize 8
Whether to use the Google Optimize page-hiding snippet.
Return value
bool google_optimize_hide_page_enable
2 calls to google_optimize_hide_page_enabled()
- GoogleOptimizeAdminSettingsForm::buildForm in src/
Form/ GoogleOptimizeAdminSettingsForm.php - Form constructor.
- google_optimize_hide_page_active in ./
google_optimize.module - Whether to put the snippet on the page.
File
- ./
google_optimize.module, line 32 - google_optimize.module
Code
function google_optimize_hide_page_enabled() {
$config = \Drupal::config('google_optimize.settings');
return (bool) $config
->get('hide_page_enable') ?: FALSE;
}