You are here

function google_tag_rebuild in GoogleTagManager 8

Implements hook_rebuild().

File

./google_tag.module, line 41
Provides primary Drupal hook implementations.

Code

function google_tag_rebuild() {
  _google_tag_assets_delete();
  $rebuild_snippets = \Drupal::config('google_tag.settings')
    ->get('rebuild_snippets');
  if ($rebuild_snippets) {
    _google_tag_assets_create();
  }
}