You are here

public function Container::getInsertionCondition in GoogleTagManager 8

Returns an insertion condition for this container.

Parameters

string $instance_id: The condition plugin instance ID.

Return value

\Drupal\Core\Condition\ConditionInterface A condition plugin.

File

src/Entity/Container.php, line 673

Class

Container
Defines the container configuration entity.

Namespace

Drupal\google_tag\Entity

Code

public function getInsertionCondition($instance_id) {
  return $this
    ->getInsertionConditions()
    ->get($instance_id);
}