public function GTMContainer::get in GoogleTagManager 7.2
Returns a property.
Parameters
string $property: The property name.
Return value
string The property.
6 calls to GTMContainer::get()
- GTMContainer::dataLayerSnippet in includes/
entity/ container.inc - Returns JavaScript data layer snippet or adds items to data layer.
- GTMContainer::environmentQuery in includes/
entity/ container.inc - Returns a query string with the environment parameters.
- GTMContainer::genericCheck in includes/
entity/ container.inc - Determines whether to insert the snippet based on settings.
- GTMContainer::id in includes/
entity/ container.inc - Returns the ID property.
- GTMContainer::insertSnippet in includes/
entity/ container.inc - Determines whether to insert the snippet on the response.
File
- includes/
entity/ container.inc, line 189
Class
- GTMContainer
- Defines the container configuration entity.
Code
public function get($property) {
$property = $property == 'id' ? 'name' : $property;
return isset($this->{$property}) ? $this->{$property} : '';
}