Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregate::hasTag()publicWC 1.0

{@inheritdoc}

Method of the class: DefinitionAggregate{}

No Hooks.

Return

null. Nothing.

Usage

$DefinitionAggregate = new DefinitionAggregate();
$DefinitionAggregate->hasTag( $tag ) : bool;
$tag(string) (required)
-

DefinitionAggregate::hasTag() code WC 7.3.0

public function hasTag(string $tag) : bool
{
    foreach ($this->getIterator() as $definition) {
        if ($definition->hasTag($tag)) {
            return true;
        }
    }

    return false;
}