public function Container::snippetCid in GoogleTagManager 8
Returns the snippet cache ID for a snippet type.
Parameters
string $type: The snippet type.
Return value
string The snippet cache ID.
1 call to Container::snippetCid()
- Container::getSnippetContents in src/
Entity/ Container.php - Returns the snippet contents for the snippet type.
File
- src/
Entity/ Container.php, line 541
Class
- Container
- Defines the container configuration entity.
Namespace
Drupal\google_tag\EntityCode
public function snippetCid($type) {
return "google_tag:{$type}:{$this->id()}";
}