You are here

function google_optimize_hide_page_class_name in Google Optimize 8

If the async-hide class name is already defined in your CSS.

You can choose a different name.

Return value

string google_optimize_hide_page_class_name

See also

https://developers.google.com/optimize/#changing_the_async-hide_class_name

2 calls to google_optimize_hide_page_class_name()
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 89
google_optimize.module

Code

function google_optimize_hide_page_class_name() {
  $config = \Drupal::config('google_optimize.settings');
  return $config
    ->get('hide_page_class_name') ?: 'async-hide';
}