You are here

public function Container::getInsertionConditions in GoogleTagManager 8

Returns the set of insertion conditions for this container.

Return value

\Drupal\Core\Condition\ConditionPluginCollection A collection of configured condition plugins.

2 calls to Container::getInsertionConditions()
Container::getPluginCollections in src/Entity/Container.php
Gets the plugin collections used by this object.
Container::setInsertionCondition in src/Entity/Container.php
Sets the configuration for an insertion condition.

File

src/Entity/Container.php, line 707

Class

Container
Defines the container configuration entity.

Namespace

Drupal\google_tag\Entity

Code

public function getInsertionConditions() {
  if (!isset($this->conditionCollection)) {
    $this->conditionCollection = new ConditionPluginCollection($this
      ->conditionPluginManager(), $this
      ->get('conditions'));
  }
  return $this->conditionCollection;
}