You are here

public function ContainerManager::loadContainerIDs in GoogleTagManager 8

Returns container entity IDs.

Return value

array The entity ID array.

4 calls to ContainerManager::loadContainerIDs()
ContainerManager::createAllAssets in src/Entity/ContainerManager.php
Prepares directory for and saves snippet files for all containers.
ContainerManager::deleteAllAssets in src/Entity/ContainerManager.php
Deletes snippet files for all containers.
ContainerManager::getNoScriptAttachments in src/Entity/ContainerManager.php
Adds render array items of page top attachments.
ContainerManager::getScriptAttachments in src/Entity/ContainerManager.php
Adds render array items of page attachments.

File

src/Entity/ContainerManager.php, line 161

Class

ContainerManager
Defines the Google tag container manager.

Namespace

Drupal\google_tag\Entity

Code

public function loadContainerIDs() {
  return $this->entityTypeManager
    ->getStorage('google_tag_container')
    ->getQuery()
    ->condition('status', 1)
    ->sort('weight')
    ->execute();
}