You are here

interface ContainerManagerInterface in GoogleTagManager 7.2

Provides an interface for a Google tag container manager.

Hierarchy

Expanded class hierarchy of ContainerManagerInterface

All classes that implement ContainerManagerInterface

File

includes/entity/manager_interface.inc, line 6

View source
interface ContainerManagerInterface {

  /**
   * Prepares directory for and saves snippet files for a container.
   *
   * @param GTMContainer $container
   *   The container configuration entity.
   *
   * @return bool
   *   Whether the files were saved.
   */
  public function createAssets($container);

  /**
   * Saves JS snippet files based on current settings.
   *
   * @param GTMContainer $container
   *   The container configuration entity.
   *
   * @return bool
   *   Whether the files were saved.
   */
  public function saveSnippets($container);

  /**
   * Adds render array items of page attachments.
   *
   * @param array $page
   *   The page render array.
   */
  public function getScriptAttachments(array &$page);

  /**
   * Adds render array items of page top attachments.
   *
   * @param array $page
   *   The page render array.
   */
  public function getNoScriptAttachments(array &$page);

  /**
   * Prepares directory for and saves snippet files for all containers.
   *
   * @return bool
   *   Whether the files were saved.
   */
  public function createAllAssets();

}

Members

Namesort descending Modifiers Type Description Overrides
ContainerManagerInterface::createAllAssets public function Prepares directory for and saves snippet files for all containers. 1
ContainerManagerInterface::createAssets public function Prepares directory for and saves snippet files for a container. 1
ContainerManagerInterface::getNoScriptAttachments public function Adds render array items of page top attachments. 1
ContainerManagerInterface::getScriptAttachments public function Adds render array items of page attachments. 1
ContainerManagerInterface::saveSnippets public function Saves JS snippet files based on current settings. 1