WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregate::resolveTagged() public WC 1.0

{@inheritdoc}

{} It's a method of the class: DefinitionAggregate{}

No Hooks.

Return

null. Nothing.

Usage

$DefinitionAggregate = new DefinitionAggregate();
$DefinitionAggregate->resolveTagged( $tag, $new ) : array;
$tag(string) (required)
-
$new *(true false)*

Default: false

Code of DefinitionAggregate::resolveTagged() WC 5.7.1

public function resolveTagged(string $tag, bool $new = false) : array
{
    $arrayOf = [];

    foreach ($this->getIterator() as $definition) {
        if ($definition->hasTag($tag)) {
            $arrayOf[] = $definition->setLeagueContainer($this->getLeagueContainer())->resolve($new);
        }
    }

    return $arrayOf;
}