function _google_tag_assets_create in GoogleTagManager 8
Same name and namespace in other branches
- 7 includes/admin.inc \_google_tag_assets_create()
Saves snippet files and data layer classes based on current settings.
3 calls to _google_tag_assets_create()
- google_tag_install in ./
google_tag.install - Implements hook_install().
- google_tag_rebuild in ./
google_tag.module - Implements hook_rebuild().
- SettingsForm::submitForm in src/
Form/ SettingsForm.php - Form submission handler.
File
- ./
google_tag.module, line 52 - Provides primary Drupal hook implementations.
Code
function _google_tag_assets_create() {
$manager = \Drupal::service('google_tag.container_manager');
$manager
->createAllAssets();
}