Automattic\WooCommerce\Vendor\League\Container\Definition
DefinitionAggregate::resolveTagged() public WC 1.0
{@inheritdoc}
{} Это метод класса: DefinitionAggregate{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$DefinitionAggregate = new DefinitionAggregate(); $DefinitionAggregate->resolveTagged( $tag, $new ) : array;
- $tag(строка) (обязательный)
- -
- $new(true/false)
- -
По умолчанию: false
Код DefinitionAggregate::resolveTagged() DefinitionAggregate::resolveTagged WC 5.0.0
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;
}