You are here

public static function GTMContainerManager::getInstance in GoogleTagManager 7.2

Returns singleton instance of this class.

Return value

GTMContainerManager The instance.

6 calls to GTMContainerManager::getInstance()
google_tag_assets_create in ./google_tag.module
Saves snippet files and data layer classes based on current settings.
google_tag_container_form_submit in includes/form/container.inc
Form submission handler for google_tag_container_form().
google_tag_page_build in ./google_tag.module
Implements hook_page_build().
google_tag_requirements in ./google_tag.install
Implements hook_requirements().
GTMBaseTestCase::deleteContainers in tests/google_tag.base.test
Delete containers from the database and delete snippet files.

... See full list

File

includes/entity/manager.inc, line 21

Class

GTMContainerManager
Defines the Google tag container manager.

Code

public static function getInstance() {
  if (!self::$instance) {
    self::$instance = new GTMContainerManager();
  }
  return self::$instance;
}