Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregate::has()publicWC 1.0

{@inheritdoc}

Method of the class: DefinitionAggregate{}

No Hooks.

Return

null. Nothing.

Usage

$DefinitionAggregate = new DefinitionAggregate();
$DefinitionAggregate->has( $id ) : bool;
$id(string) (required)
-

DefinitionAggregate::has() code WC 7.1.0

public function has(string $id) : bool
{
    foreach ($this->getIterator() as $definition) {
        if ($id === $definition->getAlias()) {
            return true;
        }
    }

    return false;
}